javac inoperable

386 byte By BenMilcha at 2007-10-3 1:02:16
HELP! I am a moron when it comes to this stuff but I am trying very hard to learn. I followed the instructions, I believe, exactly, I have recenlty downloaded Java onto 2 different computers (also 2 different versions, I believe). I am trying to learn how to program but I cannot get anything to ...

finding classpath from within Java program

479 byte By rahulbiswasa at 2007-10-3 1:02:34
I am generating a java file, that I want to compile using 1. com.sun.tools.javac.Main 's compile api2. the classpath that the program which generated the java file was started with.The compile api takes a classpath argument, which I cannot hard code but is the same as the classpath of the code ...

Javadoc.exe not in 1.5.0_07?

183 byte By MichaelFromina at 2007-10-3 1:08:00
I installed 1.5.0_07 from my hard drive after downloading the .exe from the sun site....I see no Javadoc.exe in my bin folder.Did this move? If so where can I find it? I

error message - he_err_pid2244

17279 byte By rivjmra at 2007-10-3 1:10:02
This message appeared on my desktop last night. I have no idea what this means. Could someone please assist me? Thanks in advance. ## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d0e7ab9, pid=2244, tid=348## Java VM: Java ...

Calling JVMTI outside JVM threads

797 byte By b_duncana at 2007-10-3 1:13:05
Hi folks,I'm writing a profiler-type application in C with the JVMTI. In Agent_OnLoad, I create a new thread which accept()s connection and passes them to another new thread which handles data from the network. I want to be able to control my agent over the network, specifically using ...

GCJ

717 byte By Melih_Birima at 2007-10-3 1:17:50
Hi, all. I dont know that I should write this topic in here, but there is confision in my mind these days. I tried to learn C++ after JAVA, this's come me very diffucult at all. After that, I searched some compilers like Koffea, Jikes and GCJ to help me write easily, and run under linux. I ...

Parameterized ArrayList in 1.5 but not in 1.4

1096 byte By jhh3000a at 2007-10-3 1:19:20
I've been doing a lot of reading on the discussion about JDK 1.5 and JDK 1.4 here. I think I've dug myself into a hole that will be very hard to get out of. And yes, it's my fault, but this is my first time developing a real J2EE application... sigh.Here's the problem: I have 3 months' of ...

question on editing javadoc final appearnce

365 byte By Wesley_Ba at 2007-10-3 1:20:28
We're trying to remove t he following section of what Javadoc finally spits out: Its the tree that is generated at the top of the page, as shown here: http://i57.photobucket.com/albums/g220/WesB83/inquiry.jpgWe want to remove t hat and be able to list our documentation at the top of the page. ...

JVMTI agent and max heap

418 byte By cfhlap0a at 2007-10-3 1:21:17
Running an app with a JVMTI agent attached, I cannot specify a max heap greater than 320Mb, even on a 1Gb machine with hardly anything running. Specifying for example -Xms256m -Xmx512m results in following error:Error occurred during initialization of VMCould not reserve enough space for object ...

How does JUnit work?

207 byte By frea at 2007-10-3 1:24:56
Hi,Does anyone fo you know how JUnit works? Tried searching it online and found very minimal data. It would be great help if someone really helped.Thank You,Freethan

NullPointerException for ReturnTaglet.getTagletOutput

5170 byte By dmcdermida at 2007-10-3 1:25:57
I revised a custom doclet for JDK 1.5. When I run the javadoc tool on my source code, the doclet appears to run and produce the expected results. However, I am getting NullPointerExceptions after calls to ReturnTaglet.getTagletOutput. I would like to fix my doclet to avoid these exceptions, but ...

including subpackages in javadoc

583 byte By helpcomma at 2007-10-3 1:30:48
Hi,i want javadoc to generate documentation for all the code from a given directory includng all the packages?I have a directory called sources where the source code resides. This latter is constituted of two packages each one including 3 subpackages.I would like to have a command that would ...

Some n00b questions about Javadoc and PDF and MIFDoclet

1399 byte By Rory_Leggetta at 2007-10-3 1:32:19
Hello All,I have been trying for some time now to generate a PDF document using the MIF Doclet.I am doing this through IBM Rational Software Architect (a broken version of eclipse for those of you who aren't aquainted), but essentially this feature works as it does in Eclipse.My problem is I ...

I cant play Sina games

2247 byte By StuckWithAProblema at 2007-10-3 1:32:51
The pop-up thing that u get wont comeThis is what i get when i try to get in and when I press java consoleJava Plug-in 1.5.0_06Using JRE version 1.5.0_06 Java HotSpot(TM) Client VMUser home directory = C:\Documents and Settings\Kerry Hongload: class IELoader not ...

javadoc: error - Illegal package name: ""

2348 byte By jonsja at 2007-10-3 1:34:34
When I try to generate javadoc through IntelliJ IDEA 5.1.2 I get this result:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/javadoc -package -splitindex -author -version -classpath /Users/jonsjoberg/Desktop/mysql-connector-java-3.1.13/mysql-connector-java-3.1.13-bin.jar ...

How to code EJB in Eclipse IDE

352 byte By tahirakrama at 2007-10-3 1:37:40
Hello ForumI have downloaded eclipse-SDK-3_1.2-win32.zip and installed but I couldnt findout J2EE development in it (that how we add session beans, how we configure application server and how we generate entity beans)do I need any plugin to work with J2ee in it,Please help me - Thank u very ...

JVMTI ClassLoad callback function help

656 byte By Thomas.Warda at 2007-10-3 1:38:38
Hi, In my ClassLoad function I'm tyring to get the class name from the jclass that is passed to the function so that I would have something like this:static void JNICALLcbClassLoad(jvmtiEnv *jvmti, JNIEnv* jni, jthread thread, jclass klass){const char *class_name;class_name = ...

problems with Overview appearance

876 byte By Wesley_Ba at 2007-10-3 1:44:06
I am currently trying to adjust the appearance of the javadoc overview page, being able to generate groups to show on the page. However, no group names show on the page.<group title="LDT"><package name="LDT"/></group><group title="Quickstart"><package ...

Can't get rid of Deprecated Warnings when implementing HttpSession

1212 byte By DanCooperstocka at 2007-10-3 1:44:17
We are implementing HttpSession, for a mock object for testing. However, it has methods that access a deprecated class (HttpSessionContext). Although we mark our implementation of the method that accesses this class (getSessionContext) with the annotation @Deprecated, we still get two error ...

can I compiler servlet with java compiler?

721 byte By Mman_a at 2007-10-3 1:46:29
Can I compiler servlet with java compiler?Here is an example of it:import javax.servlet.*;import javax.servlet.http.*;import java.io.*;public class HelloWorldServlet extends HttpServlet {protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException , ...

Need help with an error

160 byte By bourkeya at 2007-10-3 1:53:28
I cant access my friends and my photos in Msn spaces becasue a java error comes up saying Missing frameworkCan anyone help me pleaseCameron

JPDA and J2EE server

345 byte By AndreLia at 2007-10-3 1:53:50
Hi,The document says:The Java Platform Debugger Architecture (JPDA) consists of three interfaces designed for use by debuggers in development environments for desktop systems.So, it is for desktop systems only. Why it can not be used in J2EE environment?Any information would be appreciated. ...

Timers

1146 byte By b_duncana at 2007-10-3 2:01:00
Hey,I'm investigating alternatives to MethodEnter/Exit which allow me to probe thread states over the course of a program run. The latest avenue of testing is to use a timer to periodically query all threads (followed by recording them in an uninteresting way). It seems more difficult than I ...

Run applet in browser when html file is stored in different dir.

1997 byte By beckham12a18a at 2007-10-3 2:04:54
I have a SiteSelector.class stored in: "D:\DATA\Java Programmes\Networking\"and a SiteSelector.html stored in :"D:\DATA\Java Programmes\Networking\HTML files\"Here is a part of the code of SiteSelector.html:..............................<applet code= "SiteSelector.class" width=500 ...

NullPointerCatching

598 byte By burntcandlea at 2007-10-3 2:07:29
check this code. When my tomcat asks if it is null WHEN IT IS NULL, the whole thing falls apart, fine otherwise.......?String [] sizes = request.getParameterValues("sizes");System.out.println(sizes);try{if (!sizes.equals(null))//THE NULL LINE THAT CRASHES{request.setAttribute("sizes", sizes);}} ...

Java 1.5.0_06 Compiler Problems on Solaris

3323 byte By Zodaka at 2007-10-3 2:13:12
Hello.I have some problems compiling my sources with Java Compiler javac in version 1.5.0_06 on Solaris 10. The application has to be compiled with library files from the Oracle OC4J 10.1.2 Server. When running the compilation, the following error occurs:[javac] The system is out of ...

Gamesville games won't display

419 byte By hifromsuea at 2007-10-3 2:14:00
When game window pops up it is just a solid color background page. I can hear the sound of the game but there is no display. No adds pop up nor the game itselve. I have uninstalled reinstalled windows. Cleared cache ...installed Flash and Shockwave and done everything I can think of. This used ...

Applet Notinited - Loading Java Applet Failed

1016 byte By overcasta at 2007-10-3 2:14:36
I tried looking for my particular failure on the forums and googling it, but no one else seems to have my particular affliction.Obviously, when I try to load up my applets I created, even something as simple as a text readout, it gives me the notinited bit in the status bar.Doesn't work in ...

Hardware for Java build server

777 byte By mlsellarsa at 2007-10-3 2:14:44
I don't know if this is the correct area for the question, so I apologise if it is not...The company I work for is budgeting a seperate build server for our developers to use. We are currently 100% sparc in the server environment. Does anyone have any real work benchmarks or experience with ...

Java Newbie Problem : plz help

1547 byte By dornada at 2007-10-3 2:20:09
I'm having problem with the java command :[root@myServer datos]# export CLASSPATH=/usr/local/jdk/lib:/opt/tomcat/webapps/axis/WEB-INF/classes/org/enyuq/software/datos[root@myServer datos]# /usr/local/jdk/bin/java InformacionServidorLicenciasException in thread "main" ...

Internationalization: tags for different locales?

444 byte By MartinHilperta at 2007-10-3 2:23:19
To describe specific algorithms, it's usefull to use the local language (instead of english) in the javadoc texts. Is there some kind of functionality to support multiple locales?Example:/*** @Locale_EN{This is the englisch description.}* @Locale_DE{Dies ist die deutsche Beschreibung.}** ...

How to add static resource file into the NetBean project

160 byte By tmdfana at 2007-10-3 2:28:41
I have several static data files(such as icons, images and etc.) need to be loaded by the program. How to add them into the NetBean project?Thanks

Bytecode Execution Timing

719 byte By floating_widgeta at 2007-10-3 2:34:41
Hi All,I am currently interested in bytecode execution timings, and have been playing with the JVMTI for this purpose. The JVMTI allows one to register a Single Step event with an agent in order to monitor JVM instruction completion. I was considering including a time call here to record the ...

Javadoc generating "Constructor Summary"

613 byte By terWalsha at 2007-10-3 2:40:21
Hey guys,Just wondering if someone can clue me in as to why for some classes I have written javadoc generates a Constructor Summary and for others it doesn't.I have a couple of classes that don't contain a default constructor (and only have a few static methods) but javadoc insists on ...

help this pliz!

1101 byte By Elijah73a at 2007-10-3 2:41:39
I am running this code, I gat about 8 errors, public class IdentifyMyParts {public static int x = 7; public int y = 3; IdentifyMyParts a = new IdentifyMyParts();IdentifyMyParts b = new IdentifyMyParts();a.y = 5;b.y = 6;IdentifyMyParts.x = 1;b.x = 2;System.out.println("a.y = " + ...

class or interface expected

4090 byte By Farawaya at 2007-10-3 2:42:40
hi guys, i've been trying to create a new method but I also get this 'class or interface expected' error. could you tell me what I'm doing wrong?import java.util.Scanner;public class FishShopApp1 {public static void main (String [] args) { Scanner sc = new Scanner (System.in); double ...

javadoc document generation with Eclipse

444 byte By Pesho_318ia at 2007-10-3 2:43:39
hi all,I'm a complete javadoc beginner and I just finished commenting my code. Now I don't know how to generate the documentation. Under Eclipse I start the javadoc wizard (File -> Export -> Javadoc) and it asks me for Javadoc Command and about the destination of the standard doclet. I ...

stack overflow while compiling

971 byte By ran123a at 2007-10-3 2:45:43
I'm trying to compile a Javabean and get the following error (with the first few lines of the stack trace). How do I go about getting this to compile? The system is out of resources.Consult the following stack trace for details.java.lang.StackOverflowErrorat ...

java.IO.IOException: Unable to read RPL_ACK from server

144 byte By red527a at 2007-10-3 2:47:03
I get the following error message when trying to connect to chat. Any help?java.io.IOException: Unable to read RPL_ACK from server

increasing stack size from javac

233 byte By ran123a at 2007-10-3 2:47:59
I need to increase the stack size from javac - as I get the StackOverflow error while compiling. It seems like one of the methods is way too large. I can't find the compiler options to set the stack size. Thanks for any help.

new Boolean() vs. static Boolean constants - how java compiler handles them

507 byte By citressa at 2007-10-3 2:49:13
A coworker commented today that it is better practice to use static Boolean constants instead of creating new Boolean objects because Booleans are immutable and creating new Boolean objects would therefore be a waste of memory. For eg. do Boolean.TRUE instead of new Boolean(true). However a ...

Exception in thread main: java.lang.NullPointerException

1276 byte By ngeoa at 2007-10-3 2:50:53
Hello all,I wrote a java program and I get a null pointer exception for this line:for(int tmp=0;tmp<4;tmp++) allservers[tmp].setindex(tmp);// Null pointer exception.The line in main is this: (It calls a constructor which will be shown)ServerMonitor shopservers = new ServerMonitor();The ...

JAVADOC Problem in Netbeans 5.0

149 byte By onioa at 2007-10-3 2:51:01
JAVADOC won't work in Netbeans 5.0 when i try to add it in the Library Manager, Platform Manager. But it works well in JCREATOR. Why is that?

Matisse related bug

810 byte By nelstroma at 2007-10-3 2:51:49
The entry point for my program is a class called MainFrame. This is the main GUI for the program, and was built using Matisse. I can open the source code for the MainFrame class in Netbeans and it displays fine. If I then press the 'Design' button in the Netbeans editor toolbar, the IDE ...

Cannot import custom made java class

726 byte By haipeng.wanga at 2007-10-3 2:59:43
elloI wrote a java class say (Money.java) which compiled fine. When I was importing it to another class (Account.java), the folowing error message appears:Account.java.1:'.' expectedimport Money;(an errow pointing to ";")I dont think the code is wrong, because when I cut and attach the Money ...

really need help!!!! totally lost!!!

606 byte By monsier-dauga at 2007-10-3 3:05:29
ok i downloaded this program from the internet and it asked me to go to the propeties of "my computer" - advanced - environment variables - path - edit and add ";C:\program files\Java\jdk1.5.0_06" to make the program work. But when i open the program the following apears: "Exception in thread ...

Error occurred during initialization of VM

378 byte By cntgpp@hotmail.coma at 2007-10-3 3:11:29
Hi,I'm an Oracle DBA. I got:'Error occurred during initialization of VMjava.lang.Error: Properties init: Could not determine current working directory.' when starting an Oracle Installation on Solaris 5.9.Could you please help me to understand the problem?Thanks,GiuseppeMessage was edited ...

Odd Handling of Wide by GetBytecodes -- Any Thoughts?

1990 byte By bdstephea at 2007-10-3 3:17:36
Hello Everyone,I have been playing with examining the set of bytecodes executed by different Java applications using the JVMTI. However, I have come across an oddity with respect to how wide is handled. I wrote a simple hello world type program (prints "Hello World", then assigns 5 to a local ...

Need to document specific classes/methods for API

714 byte By sickesa at 2007-10-3 3:19:10
Hello everyone,I am trying to create an API for only those methods or classes which we have agreed to support for customers. Is there a pre-existing tag, taglet, or docloet that will allow me to have javadoc run for only those elements containing a specific tag? It could be any combination of ...

Weird thing with try-catch

3466 byte By r.saavedraa at 2007-10-3 3:19:34
Hey everyone, I have a problem compiling this .javaimport java.io.*;public class lector{public static void main (String args[]) {}public void lector() {listapersonas listap = new listapersonas();listaconocidos listac = new listaconocidos();String linea, per, con;persona ...