Re: installation help - error on running java no classes.zip?
Nope this didn't work - I still get the same error. $ java HelloWorldApp Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp I installed the Netbeans IDE which requires that JAVA_HOME and CLASSPATH be set. I still get the same error if I unset them. I will ask blackdown to update their FAQ which has the classes in classes.zip instead of rt.jar, which lead to some of my confusion. Thanks At 10:35 PM -0800 01/31/2000, Peter Graves wrote: >Do this: > > java HelloWorldApp > >instead of this: > > java HelloWorldApp.class > >If you're using 1.2.2 you don't need a CLASSPATH (at least not for >this). > >The runtime classes are in .../jdk1.2.2/jre/lib/rt.jar, not >../classes.zip. > >-Peter >http://armedbear.org -- Pray to God, But Hammer Away - Spanish Proverb Clyde Jones Clyde Jones Http://www.geocities.com/clyde-jones mailto:[EMAIL PROTECTED] Cell 443.226.6054 __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
VMs with processor specific code generation
Does anyone know whether there are any VMs out there that generate CPU specific machine code? Eg. detect a PentiumIII and issue approprate prefetch instructions, etc. If so, is there material available describing how far such CPU specific support goes? Thanks, Wolfgang. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: installation help - error on running java no classes.zip?
You don't need classes.zip or rt.jar in your classpath, but you do need the directory containing your HelloWorldApp program in your classpath. Hope this helps. jason clyde jones wrote: > Nope this didn't work - I still get the same error. > > $ java HelloWorldApp > Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp > > I installed the Netbeans IDE which requires that JAVA_HOME and > CLASSPATH be set. I still get the same error if I unset them. > > I will ask blackdown to update their FAQ which has the classes in > classes.zip instead of rt.jar, which lead to some of my confusion. > > Thanks > > At 10:35 PM -0800 01/31/2000, Peter Graves wrote: > >Do this: > > > > java HelloWorldApp > > > >instead of this: > > > > java HelloWorldApp.class > > > >If you're using 1.2.2 you don't need a CLASSPATH (at least not for > >this). > > > >The runtime classes are in .../jdk1.2.2/jre/lib/rt.jar, not > >../classes.zip. > > > >-Peter > >http://armedbear.org > > -- > Pray to God, But Hammer Away > - Spanish Proverb >Clyde Jones > > Clyde Jones > Http://www.geocities.com/clyde-jones > mailto:[EMAIL PROTECTED] > Cell 443.226.6054 > > __ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: installation help - error on running java no classes.zip?
Thanks - that did the trick. I needed to set CLASSPATH to CLASSPATH=/usr/local/jdk1.2.2/jre/:. So if I understand this correctly, I got the error because the local directory was NOT in the CLASSPATH; so java could not find the class I created in my program and threw that exception. So despite what the install README says; assuming an install directory of /usr/local/jdk1.2.2, the env variables need to be set to: PATH=$PATH:/usr/local/jdk1.2.2/bin: CLASSPATH=/usr/local/jdk1.2.2/jre/:. JAVA_HOME=/usr/local/jdk1.2.2 Thanks - hope everyone's advice helps all the other newbies out there At 9:54 AM -0600 02/01/2000, Jason Blair wrote: >You don't need classes.zip or rt.jar in your classpath, but you do need >the directory containing your HelloWorldApp program in >your classpath. > >Hope this helps. > >jason > > >clyde jones wrote: > > > Nope this didn't work - I still get the same error. > > > > $ java HelloWorldApp > > Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp > > > > I installed the Netbeans IDE which requires that JAVA_HOME and > > CLASSPATH be set. I still get the same error if I unset them. > > > > I will ask blackdown to update their FAQ which has the classes in > > classes.zip instead of rt.jar, which lead to some of my confusion. > > > > Thanks > > > > At 10:35 PM -0800 01/31/2000, Peter Graves wrote: > > >Do this: > > > > > > java HelloWorldApp > > > > > >instead of this: > > > > > > java HelloWorldApp.class > > > > > >If you're using 1.2.2 you don't need a CLASSPATH (at least not for > > >this). > > > > > >The runtime classes are in .../jdk1.2.2/jre/lib/rt.jar, not > > >../classes.zip. > > > > > >-Peter > > >http://armedbear.org > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Pray to God, But Hammer Away - Spanish Proverb Clyde Jones Clyde Jones Http://www.geocities.com/clyde-jones mailto:[EMAIL PROTECTED] Cell 443.226.6054 __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: installation help - error on running java no classes.zip?
Hello Clyde, cj>So despite what the install README says; assuming an install cj>directory of /usr/local/jdk1.2.2, the env variables need to be set to: cj> cj>PATH=$PATH:/usr/local/jdk1.2.2/bin: cj>CLASSPATH=/usr/local/jdk1.2.2/jre/:. cj>JAVA_HOME=/usr/local/jdk1.2.2 Sorry, this is not correct. At least with JDK 1.2.2 RC4 you do NOT need to specify any of these variables. The PATH is convenient, of course, but you can also run the java binaries without having the "bin" directory in the PATH (by giving the complete path on the command line, for example). You only need to specify the CLASSPATH if you want to have more than the standard JARs in it (and then, it is probably better to specify the pathes on the java command line instead since you will probably have different classpath's for different applications) MbG, Ekkehard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
No swing classes
I'm having a problem here with the swing classes. All of the console apps and awt applets seem to be working alright, but none of the applications or applets using swing are compiling. I'm new at this so it could be a config error somewhere, I've downloaded the self-installing file from 3 different sites reinstalling it each time (after removing the previous install) and the compiler still says that No class def found for the swing methods. Any help I can get would be appreciated. Jack Jensen [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: installation help - error on running java no classes.zip?
On Tue, Feb 01, 2000 at 10:55:00PM +, Ekkehard Kraemer wrote: > Hello Clyde, > > cj>So despite what the install README says; assuming an install > cj>directory of /usr/local/jdk1.2.2, the env variables need to be set to: > cj> > cj>PATH=$PATH:/usr/local/jdk1.2.2/bin: > cj>CLASSPATH=/usr/local/jdk1.2.2/jre/:. > cj>JAVA_HOME=/usr/local/jdk1.2.2 > > Sorry, this is not correct. At least with JDK 1.2.2 RC4 you do NOT need to > specify any of these variables. The PATH is convenient, of course, but you can > also run the java binaries without having the "bin" directory in the PATH (by > giving the complete path on the command line, for example). > > You only need to specify the CLASSPATH if you want to have more than the > standard JARs in it (and then, it is probably better to specify the pathes on > the java command line instead since you will probably have different > classpath's for different applications) The JDK1.2 class path consists of 3 components - boot classes, extension classes, and user classes - and the CLASSPATH only addresses the last one. If you don't have CLASSPATH set, it defaults to ".". If you do set it, it won't see the current directory unless, as in this example, "." is explicitly included. So... the core classes (rt.jar) are in the boot classpath, which you normally don't touch but can affect (if you must) with the -Xbootclasspath option. The standard JARs are in another classpath that you can't set at all. (Well, you can if you happen to know the property name, but it isn't documented anywhere.) CLASSPATH (or the -cp or -classpath option) affects the "user" class path - unlike in JDK1.1, there is no need for you to point it to the core or extension classes. Nathan > MbG, Ekkehard > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- [EMAIL PROTECTED] Public Access User -- Not affiliated with Teleport Public Access UNIX and Internet at (503) 220-1016 (2400-28800, N81) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Another JCE Question...
Howdy again, y'all, and forgive yet another JDK/JCE question. I grabbed an open implementation of the Sun JCE from http://www.openjce.org (it supplies the Twofish algorithm, which I need). Untarring it presented with a whole bunch of files. At any rate, in /home/rjhansen/jce-aba-1.1/lib-1.2 there's a single file, jce.zip. I added this file (fully qualified path and filename) to my CLASSPATH and added a line to my java.security file. security.provider.1=sun.security.provider.Sun security.provider.2=com.sun.crypto.provider.SunJCE security.provider.3=au.net.aba.crypto.provider.ABAProvider Now, a trivial crypto program which works perfectly with the SunJCE provider is throwing NoSuchAlgorithm exceptions when I try to use any methods from the OpenJCE provider. Any ideas on what I'm doing wrong here? For the record, I'm using JDK-1.2.2RC4. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: VMs with processor specific code generation
At 17:42 2/1/00 +0100, Wolfgang Hoschek wrote: >Does anyone know whether there are any VMs out there that generate CPU >specific machine code? >Eg. detect a PentiumIII and issue approprate prefetch instructions, etc. >If so, is there material available describing how far such CPU specific >support goes? The VM itself persee wouldn't be generating machine code, rather executing it's own in order to interpret your class; thus it's a compiler question, how was the jvm compiled? does the vm itself use those instructions? Actually, I think you may be refering to JITC technology? In which case I know the IBM jitter generates cpu level specific code on other platforms, based on the diagnostic outputs I have been asked to copy to them for problem determination... I don't know about the linux jit. IBM research may have put out some papers about jit methodology... but I doubt they would go into that level of detail. cabbey at home dot net <*> http://members.home.net/cabbey I want a binary interface to the brain! Today's opto-mechanical digital interfaces are just too slow! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Java-Linux I18N Tutorial
Hi Renzo: Thank you for the information you put together. It helps. Regards, Lee -Original Message- From: Renzo Pecoraro [mailto:[EMAIL PROTECTED]] Sent: Monday, January 31, 2000 2:14 AM To: [EMAIL PROTECTED] Subject: Java-Linux I18N Tutorial All - I started a little Java-Linux I18N Tutorial at http://www.renzop.com. It includes a custom font.properties file and instructions for Linux that allows you to use the gnu-unifont in your browser/JDK/JRE. This is a work in progress and comments/questions are greatly appreciated. Thanks. Renzo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Servlet
I have written a servlet yjay invokes an applet to communicate with a database. I am using Java Web server 2.0, and when I start the servlet from the browser, I get this error at the bottom of my Netscape window: applet machine class machine could not be loaded. Also when I try to acces my host:8080 from another machine, I cannot. Can anyone help me?? Thanks _ A Native American elder once described his own inner struggles in this manner: "Inside of me there are two dogs. One of the dogs is mean and evil. The other dog is good. The mean dog fights the good dog all the time." When asked which dog wins, he reflected for a moment and replied, "The one I feed the most." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
