| Problem with Javadoc out of memory in WSAD 5.1.2 |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- Filling a bitmap image with java 1.3.1I need to fill parts of a bitmap, representing European country's
electional cantons, with different colors, one per canton. I would
like to know what would be the best way to do it on a pure java awt
environment.
Thanks a lot.
- 1
- Changing contents of signed Jar ?Hi,
If I want to unzip a signed jar and zip it backup after tweaking a file
or two do I have to sign it again ? I'm not sure if the signing process
uses the contents of the jar or not !
Thanks
Steve
- 2
- Chart bar 3DHi,
I'm using JFreeChart with very good results but yet have the problem to
generate charts 3d bar where I can set the value of the three axis values
for the visualization.
Can any help me or tell where can I find a freeware library or applet.
Thank you in advance
Markus
- 4
- 4
- short-circuit operators - part of the spec?My book says the following about && and ||
(see below dashed line.) And I wonder if this
is built into the language or an artifact of the
compiler. Previously (in my youth) we were
taught that depending on the compiler to skip
evaluating stuff was dangerous and bad for
maintenance.
----------------------------
known as the short-circuit logical operators:
&& short-circuit AND
|| short-circuit OR
The short-circuit feature of the && operator is that it doesn't waste its
time on
pointless evaluations. A short-circuit && evaluates the left side of the
operation first
(operand one), and if operand one resolves to false, the && operator doesn't
bother
looking at the right side of the equation (operand two). The operator
already knows
that the complete expression can't possibly be true, since one operand has
already
proven to be false.
- 4
- Internet web app - sending .PDF or .PS output direct to user printerI have a real brain-teaser here (it may not even be possible). We have
a web app, it will run across the INTERnet (not intra). The app will
generate reports. Currently what we do is:
1. generate the report (over on the server, obviously) as a .pdf file
2. once done, we forward the user to the URL of the .PDF file
3. Since IE knows what to do with filetype .PDF, he kicks off Adobe
Reader and loads the .PDF in the new window.
For non-technology-related reasons, we can't do it this way (the user
must not be allowed to print the output more than once, and of course
once we dump them into Adobe Reader they can hit the Print button all
day, no way for us to stop them).
So we need to figure out how to take this output (we're generating it
with FOP) and dump it out to the user's printer (in other words, we
don't display the file, thereby allowing them to print multiple times;
we simply print it). I'm thinking with the code and the output file
over on the app server, there really isn't a way for me to direct this
output to the printer of a user who is running our app through IE. Or
am I wrong? If I'm right, can anyone think of another way to achieve
this result? Thanks as always.
- 5
- JAR files and manifest: Class-PathHi!
I have a base dir, where the application JAR file resides. In this base
dir, there's also a lib dir, nothing special really. In this lib dir are
some user look and feel JAR files, which are supposed to be loaded when
the application is started via the JAR file.
Is there any way to use the Class-Path entry in the manifest, so that it
scans that ./lib directory and loads all the JARs in there, *without
knowing up-front, what these files are*?
I tried
Class-Path: ./lib
Class-Path: ./lib/
Class-Path: ./lib/*
Class-Path: ./lib/*.jar
but none of them work.
Maybe there's some other way, which I don't know of. I simply don't want
to explicitly deploy the JAR's (versions, size etc.).
Anyway, how do I do it?
Karsten
- 7
- JBoss,integrated Tomcat,Mysqltsstsc wrote:
> I am new to J2ee, and have difficulty deploying them to JBOSS, can
> anyone help?
>
> --
> Posted via http://dbforums.com
I'm started programming in J2EE for several months ago now.
I'm using Eclipse (eclipse.org) as IDE.
There's a plugin available for free that helps you starting a J2EE
project. You can find the plugin at
http://sourceforge.net/projects/lomboz. You can deploy your project to
several aplication servers including JBOSS/Tomcat.
That's the way I started after a bit of reading.
Good luck,
Marcel
- 8
- Executable Jars - why are they so rigid with classpaths ?If someone gives me a jar file with a Main in it and some supporting
library jar files, the Manifest.mf will contain information on what
the Main class is and also the location of supporting library jars
RELATIVE to the application jar file. But once I get the jar, I want
to move the supporting jar files to some other convenient directory.
But If I do that, the application jar file will not be able to locate
the supporting classes since the Manifest file has the supporting jar
paths pretty much HARDCODED ! How do I override the hardcode and give
it a different search path so that it can start looking at the new
directory ? This rigidity makes it so painful during times of
distribution. Please help.
- 8
- houghtransformationHello,
I'm looking for sourcecode for a houghtransformation (the one for line
detection). Has anyone somethign like that?
regards, Johannes Elsinghorst
- 8
- How to obtain the right 256 color pallette for the blend of two colors...?Hi all,
I have the following problem: I need to generate dynamically an image with
IndexColorModel (256 color PNG) of a text over a solid color. The parameters
are color foreground for the text and background. The problem is how to
select the most appropriate 256 color pallette for the text to look best. I
mean the text should be antialiased and any other hint applied. For example,
If I pick black on yellow image I think it should have all the tones of
black and yellow. Any red color will be useless and it will be lost space on
the reduced 256 color pallette. But in this example the red could be a good
choice for the transparent color...
How to solve this problem?
I guess I need some background on colors (theory of colors?) Any hint is
welcomed.
Thanks in advance
Sammy
- 8
- Open Document Format / Rich Text Format Editor in Javahi all,
I'm looking for a java class or a set of java classes with which I can
display ( and edit ) a ODF-Document (or a RTF-Document).
One requirement is that it is possible to display different fonts,
text size, text color, text-decoration, images, tables with or without
borders/colors , links, background color, indent, numbering, bullets
etc.
I know about the RTFEditorKit and the HTMLEditorKit from the swing
packages ...and of their limitations.
As my application will use SWT (&RCP), I'm looking for a "better"
alternative. Does anyone of you know which classes could be of
interest for me?
Thanx for your help
Dominik
- 8
- This JComboBox does not resizes itselfHello.
By the program below, I wanted to change the message "a" on the
JComboBox
left side into "a-changed" by clicking the "change" button.
But all I saw was "..." because the JComboBox does not resizes itself.
How can I resize the JComboBox?
Thank you in advance.
----
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
public class ChangeItem extends JFrame {
public static void main(String[] args) {
new ChangeItem();
}
private ChangeItem() {
setSize(300, 100);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container cp = getContentPane();
cp.setLayout(new FlowLayout());
Combo combo = new Combo();
cp.add(combo);
cp.add(combo.new XButton());
setVisible(true);
}
private static class Combo extends JComboBox {
private Combo() {
addItem(new Item("a"));
}
private class XButton extends JButton {
private XButton() {
super("change");
}
protected void fireActionPerformed(ActionEvent e) {
Item i = (Item) getSelectedItem();
i.displayName = i.displayName == "a-changed" ? "a"
: "a-changed";
Combo.this.repaint();
}
}
}
private static class Item {
private String displayName;
private Item(String displayName) {
this.displayName = displayName;
}
public String toString() {
return displayName;
}
}
}
- 11
- Cool new websiteBrand new site.
Loads of great stuff
Free membership and full access
Check out Yapooh!
http://www.yapooh.org
- 11
- Windows install locations J2SE and TomcatI'm installing J2SE, J2EE and Tomcat (and other Servlet Containers )
I hope I don't run into any conflicts because I notice J2EE comes with
the AppServer, and I'll also want to use Tomcat and possibly even try
WebSphere.
I'm wary of the standard location, with a space in the path
....\Program Files\....
and I can only forsee trouble from this. Any comments or suggestions
?
I already have it installed there, and I think it would be easy to move
( I don't even have JAVAHOME set yet )
Would I need to use uninstall or can I just move the whole dir
structure, below
jdk1.5.0_06 and then set up my path, env var's etc. ??
I don't have any other pressing ? at this point, but I'll be exploring
Tomcat too.
I know using it as a standalone ( on port 8080 ) is a breeze, but I'm
also curious if I can get the connectors to work, in conjunction with
Apache Server ( any current references ? )
I know the connectors have been improved over the last 5 years, just
want the current setup.
TIA
|
| Author |
Message |
Etantonio

|
Posted: 2006-12-1 0:28:00 |
Top |
java-programmer, Problem with Javadoc out of memory in WSAD 5.1.2
Good morning,
we are using WSAD version 5.1.2 , now we need to create the javadoc of
our project but during he creation we have the following error :
javadoc: java.lang.OutOfMemoryError: Please increase memory.
For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx
such as -J-Xmx32m.
if I insert this line
C:\Programmi\Java\jre1.4\bin\javadoc.exe -J-Xmx32m
in the Preference --> Java --> Javadoc Menu we have the message
"javadoc command not exist"
how we could solve the problem using WSAD ??
Many thanks
Antonio
www.etantonio.it/en
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2006-12-1 0:44:00 |
Top |
java-programmer >> Problem with Javadoc out of memory in WSAD 5.1.2
Etantonio wrote:
> we are using WSAD version 5.1.2 , now we need to create the javadoc of
> our project but during he creation we have the following error :
>
> javadoc: java.lang.OutOfMemoryError: Please increase memory.
....
> how we could solve the problem using WSAD ??
We could probably help you figure how to do it 'using java'
(or rather, using the javadoc tool from the command line
or Ant), but for doing it using WSAD, did it occur to you to ask..
<http://www-306.ibm.com/software/awdtools/studioappdev/support/>
?
Andrew T.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Need help calling java classesHi. I am a beginner in java so i may sound like a total prat here,
but here goes:
I have been given my university coursework to do. I have to make a
program whereby a customer ordering boxes is asked what attributes of
a box he/she wants from list we have been given, then work out a price
for the box. Anyhow, we have six box types, so a class for each, an
Input class for reading input from the keyboard and a main class.
now, obviously the program starts in main, but i need to go to the
Input class as soon as the program starts, so i can put in some info
from the keyboard, but my tutor says that we have to separate the main
and input classes(whereas i can see it being easier to shove it all in
the main class), so i need to know this: How do you call one class
from another in java? I know how to call methods in one class:
methodname();, but i need to access the input class from the main
class. Is this possible or am i barking up the wrong tree? Help is
much appreciated.
Thanks
----------
Stuart
- 2
- J2EE File Event PatternI have a design issue that I was hoping that this list could assist me
with:
I need to create a File Event Handler that is J2EE compliant.
The basic requirements are:
- Detect the arrival of a file on a particular path (including
file masking patterns)
- Recognize the type of file
- Route either data stream or file reference to an appropriate
handler. The handler will process the contents of the file.
- Election of an instance to handle the file (the file will
arrive on a shared drive that all instances of the app will see) to
prevent multiple instances of the same file being processed
Anyone have any good pointers or patterns to use?
Thanks,
Jeff Harman
- 3
- OpenJDK and the Free Java Packaging RoadmapAll:
I did upload my slides from today's talk to the website, but it
appears the URL has not shown up yet? [1] As soon as I can point
you to the slides I will.
I also wanted to let you know that I have setup a wiki page to work
on documenting the Policy issues I've mentioned previously on the list
and in my talk today.
And please... if you have ideas for interesting libraries and/or
applications to package please add them to the wiki.
Regards,
--Tom
[1] http://wiki.debian.org/Java/JavaPolicy2007
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 4
- Building an Exception LayerI am trying to build an Exception Layer for a new system. The exceptions I
want to catch are :
* system/configuration failures e.g., Hibernate configuration file missing
etc. (StructureException)
* system access voilation e.g. wrong user id etc. (PermissionException)
* business rules voilation (BusinessRulesException)
* data access voilation (DAOException)
My question is should these above Exception sub-classes be inherited from
Exception or RuntimeException? Please explain why?
In this system I am planning to use Hibernate and Struts. StructureException
will be used in Hibernate and Struts initialization. I was thinking about
creating 2 classes HibernateStructureException and StrutsStructureException
inherited from StructureException and using them in respective code. What do
you guys think?
Thanks
Thanks
- 5
- Can I deploy Crystal XI Java Report Component on Linux ?Hi,
We are developing J2EE application and plan to deploy it on Oracle Apps
Server on Linux, we use Crystal Report XI as report tools.
We use Java Report Component for integration to jsp page.
The question is : can we deploy Crystal Report XI into Apps Server on
Linux ?
Thank you for your help,
xtanto
- 6
- Get the best browser in the world.Get the best browser in the world.
If you are still using "explorer" download Firefox - it will change
your life.
Get it from here for free:
http://xthost.info/browser/index.htm
- 7
- XML Document. Node vs Elements, and moreI am parsing a document, so am using nodelist to get the children of
the root, and using logic to parse the Nodes depending on which one it
is. however, I need more power than "Node" can give me. So can I
somehow convert a Node to an Element (I basically need the ability to
read the attributes of an item as well as just get the value).
However, they don't have an ID that i could accurately read to use the
getElementByID() tag. So how can i convert a node to an element? Or
is there a better way for me to go about this instead of root ->
Nodelist ??
Here is some sample code:
Element docRoot= documentWx.getDocumentElement(); // get root
NodeList elements =docRoot.getChildNodes();
elements=elements.item(1).getChildNodes();
//The NodeList now holds everything under Data
for(int counter=0;counter<elements.getLength();counter++)
{
tempNode = (elements.item(counter));
Current = (Element) tempNode;
if(Current.getNodeName()=="Location")
{
//Read 'Location' , element properties of latitude, longitude
}
}
- 8
- ?: javadoc link warnings on references to interface class within interface class.I'll try to be as clear as I can on this...
I have an interface class that I want to use simply as a static data
repository.
e.g.:
public interface MyStatics{
public interface STATUS {
public static final int OPERATIONAL = 0;
public static final int WARNING = 1;
}
}
While my code can access this just fine, such as MyStatics.STATUS.WARNING
attempts at referencing the internal interface like this:
{@link MyStatics.STATUS}
e.g.:
/**
* Reports on the operational health of the firmware.
*
* @return The static value that indicates the operation
* status. See {@link MyStatics.STATUS} for possible values.
*/
public int getStatus() {
return MyStatics.STATUS.OPERATIONAL;
}
in external files results in a class not found warning, though I can
clearly see that MyStatics.STATUS.html is getting created post javadoc
build.
Any ideas?
--
If replying directly, please remove the
cleverly decorated addition to my return address.
- 9
- Program counterI'm a newbie at programming and I'm trying to write a program that
allows me to count the number of times a program is accessed with the
result to increment a log file. I can get it to work(ish) with vbs if
the user opens up the program first and then opens the file, but as
you can imagine most users open up the file by double clicking in
explorer or via shortcuts. Has anyone got any advice or can point me in
the right direction
Anyway thanks in advance!
- 10
- NIO UDP and TCPHello
I need an expert's advice and clear some concepts.
I have a NIO server and a NIO client.
I have a big muddle with all this of TCP UDP and NIO.
My NIO server uses ByteBuffers to send objects converted to bytes.
So it's quite eficient. What it must do is to send chat and java
objects that encapsulate some data.
I am doing a kind of game and I need to send data of position and
orientation of some characters that move in a 3d scenario. I don't
need all positions, I will send some, not all. When people receive
them in their clients, I use dead reckoning to move the people
characters.
But if there's many people in the 3d place moving, I will need to send
a huge amount of data. That's why I used NIO.
I read that was done with UDP Datagrams in the past.
My questions are:
- Do I need UDP Datagrams if I use NIO (sending Objects as bytes)?
- Can UDP used with NIO? Or it needs another connection?
- What has to do TCP and UDP with NIO ?
Sorry for the stupid questions. Just asking to clarify and get advice.
Thanks
Jordi
- 11
- jpg background on JPanel is rendered on top of scrollbars...I have a rudimentary gui with a class that extends JPanel, which sets its
content to a jpg image using:
if (im != null) { g.drawImage(im,0,0,null); }
in the paint() method. However, when I create a JScrollPane that uses this
JPanel extension as its scrollable client, and call a validate, the
scrollbars get visuall overwritten with the jpg image.
Has anyone encountered this error before and knows how to fix it?
Regards,
Mike Kamermans
- 12
- RPC is message-based?Hello!
Please, at :
http://www-106.ibm.com/developerworks/xml/library/x-soapbx2/#2
It's written that "...RPC is a message-based means of making requests over
a network..."
What does this really mean?
Should I understand that RPC is asynchronous?
Thanks.
Arcadius.
- 13
- Eclipse: GUIHow to develop GUI with the help of Eclipse, which plugin to use, i want
swing functionality
Thanks
- 14
- How to determine subclasses of a classHello,
I have a situation where all classes that implement a certain
interface are candidates to have a specific annotation. Now I want to
obtain all classes that implement that interface and select those that
have the anotation of interest. Question is how this can be done.
There seems to be no way you can ask a class for its subclasses (as
f.e. in Smalltalk), which would make things realy easy. Any ideas how
this can be solved? Do I have to write my own class loader? Hopefully
not ...
Thanks for any hints.
Cheers, Oliver
- 15
- Eclipse with iSeries (AS/400) plugini would like to use ( standard) Eclipse with connect to iSeries
(AS/400) server,
i know that this plugin is in eclipse which is in websphere studio
development package for iSeries, but i dont want instaled this
version,
know anybody if its possible somewhere download this plugin
thankx
// david
|
|
|