🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15687

Re: Interpreter Fails

#15687
From: Steve Horsley
Date: Tue, 11 May 1999 00:00
48 lines
2179 bytes
I think VJ has scrambled your JDK install.
When I use the JDK, I have a batch file that does this...
path %PATH%;e:\java\jdk1.2\bin
set JDKHOME=e:\java\jdk1.2
set JAVA_HOME=e:\java\jdk1.2
set CLASSPATH=.;%JAVA_HOME%\lib\classes.jar

Note that my classpath has a .; at the front. Adding this to
yours might make the app work. Also, the JDK classes are in
classes.jar - not just classes.

I also find that I can run...
java Hello
without using the JDK batch file. I notice that there is no
environment variables relevant to java when I do this. I think
the JRE puts a java.exe in my path somewhere.

It might be worth uninstalling VJ and reinstalling the JDK.
Steve.
//--------------------------

foolhead wrote:
> 
> Hello,
> Now I run the JAVA application,always show, on command line,
> 'Exception in thread "main" java.lang.NoClassDefFoundError:XXXX'.
> XXXX is the class name.
> Take an example.
> First I build a Hello.java file.And its code is belowing.
> -------------------------------------------------------------
> import java.io.*;
> public class Hello{
>     public static void main(String[] args){
>         System.out.println("Hello.");
>     }
> }
> -------------------------------------------------------------
> Second, I type 'javac Hello.java' on command line.Compile OK.
> Third, I type 'java Hello'.Show that error.
> The Applets run well.
> I first setup JDK1.2.1.Then setup VJ++.
> I am afraid the Interpreter is destroyed or the Environment sets wrong.
> The CLASSPATH is 'c:\windows\java\classes'.
> Could you do me a fever?
> Thanks.
> 
> -----
> ICQ:26526438
Technical Details
Message-ID: <3737EEE3.47E354DF@cwcom.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3737C4D4.7221AFE7@990.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e4d97ca9b04881fa
X-Google-Attributes: gidf74b3,public
From: Steve Horsley <steve.horsley@cwcom.co.uk>
Subject: Re: Interpreter Fails
Date: 1999/05/11
Message-ID: <3737EEE3.47E354DF@cwcom.co.uk>
X-Deja-AN: 476509643
Content-Transfer-Encoding: 7bit
References: <3737C4D4.7221AFE7@990.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Cable & Wireless Communications
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language