Janni <[EMAIL PROTECTED]> wrote: 
Hi,

i have a problem with Java and SCiTe since weeks. 

My operating system is Ubuntu 7.04, and I use the JVM 1.5
(:~$ java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_11-b03, mixed mode)
)

When i wrote a programm in Java and compile this, SCiTe tell me something
like that:
>java bla
Exception in thread "main" java.lang.NoClassDefFoundError: bla
>Exit code: 1
I think you need to download the compiler (which is invoked using "javac bla" 
not "java bla").  If I remember correctly, you write your code in an editor ( 
like SciTE ) and save it as "HelloWorld.java" then use:
>javac HelloWorld
which will compile it to a class file as "HelloWorld.class" and after that you 
can use:
>java HelloWorld
to run the program.
Also, I believe the filename must match the name of the class that you define 
in the code.  For instance, "HelloWorld.java" might contain something like:
--------8<--------
import java.awt.*;

public class HelloWorld
{
    public static void main (String[] args)
    {
        ....
    }
}
-------->8--------

Nathan.



       
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to