jEdit Community - Resources for users of the jEdit Text Editor
custom classes in jcompiler
Submitted by Anonymous on Friday, 19 November, 2004 - 20:00
Hi,
im new to java and jedit(great features) my main problem is that i have to use custom classes that come with my learning script. First is there a global dir where java looks for them? Second i added the path to the classpath in jcompiler: /home/Programmierung/classes/
When i compile my helloworld:

import javakurs.io.*;

public class BeispielApp {
public static void main( String[] argv )
{

Ausgabe.println( "Hello World" );

}

}

it runs trough and dont seem to make errors, but when i wanna run my prog with the console java i get this:

Exception in thread "main" java.lang.NoClassDefFoundError: javakurs/io/AusgabeFenster at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at javakurs.io.Ausgabe.(Ausgabe.java:31) at BeispielApp.main(BeispielApp.java:7) Process java exited with code 1

I tested the same settings in eclipse and it runs fine.
this is the eclipse entry:


so what i am doing wrong?
Or is there a better way to set the classes and run/compile my stuff?

thx so far
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
setp further
by Anonymous on Fri, 19/11/2004 - 21:44
how can i change the $CLASSPATH to variable,
couldnt find where, it seems in this path my entrys in jcompiler are not given to the console/java command.
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82349
Context Free Art (*.cfdg)   0.31   46055
BBEdit scheme   1.0   18595
JBuilder scheme   .001   18495
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293