many thx!!
Open Executable node properties in your project and check what exactly
is included in your jar archive.
Also if you use third party libraries you should also make sure those
are also included in the executable.
Doychin
"Doychin Bondzhev" <doy...@dsoft-bg.com>
???????:4848fb7c$1...@newsgroups.borland.com...
Doychin
"Doychin Bondzhev" <doy...@dsoft-bg.com> wrote in message
news:48496c07$1...@newsgroups.borland.com...
"Doychin Bondzhev" <doy...@dsoft-bg.com> wrote in message
news:48496c07$1...@newsgroups.borland.com...
More specifically check the options addbootpath and addjars.
Also check which classes are included in the executable. Check the Content
page for the executable node properties.
Doychin
"kei" <k...@omc.com.hk> wrote in message
news:4849...@newsgroups.borland.com...
"Doychin Bondzhev" <doy...@dsoft-bg.com> wrote in message
news:4849...@newsgroups.borland.com...
because my JES_Main class in placed in that (. means current directory of
the .exe)
but there is still error message
D:\My Projects\FAS\project>jes_account
Exception in thread "main" java.lang.NoClassDefFoundError:
JES_Account/JES_Main
Caused by: java.lang.ClassNotFoundException: JES_Account.JES_Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
what is ther reason??
I am very sure that the jes_account.jar contain the class
JES_Account.JES_Main!!
"Doychin Bondzhev" <doy...@dsoft-bg.com> 撰寫於郵件新聞:4849...@newsgroups.borland.com...
the exception message has changed some.
Exception in thread "main" java.lang.NoClassDefFoundError:
com/borland/jbcl/layo
ut/XYLayout
at JES_Account.fmLogon.<init>(fmLogon.java:41)
at JES_Account.fmMainFrame._$4286(fmMainFrame.java:201)
at JES_Account.fmMainFrame.<init>(fmMainFrame.java:184)
at JES_Account.JES_Main.<init>(JES_Main.java:41)
at JES_Account.JES_Main.<init>(JES_Main.java:30)
at JES_Account.JES_Main.main(JES_Main.java:139)
Caused by: java.lang.ClassNotFoundException:
com.borland.jbcl.layout.XYLayout
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 6 more
it seems it can now search the jes_main class, but I doubt that how to
deploy the jes_account.exe to other client? why not something like
D:/My Projects/FAS/project/classes
C:/JBuilderX/lib/dx.jar;
cannot be found in my jar and need expliciit add it in jes_account.config?
"Doychin Bondzhev" <doy...@dsoft-bg.com> 撰寫於郵件新聞:4849...@newsgroups.borland.com...
For example if you have the following configuration.
the program is installed in directory c:\program
All third party jars including your own jes_account.jar are in the
sub-directory called lib.(this means you should copy dx.jar to lib
directory)
your config should look like this:
addjars ./lib
mainclass JES_Account.JES_Main
That's all.
Doychin
> "Doychin Bondzhev" <doy...@dsoft-bg.com> ј¶јg©у¶lҐу·s»D:4849...@newsgroups.borland.com...
"Doychin Bondzhev" <doy...@dsoft-bg.com>
???????:484f859d$1...@newsgroups.borland.com...
>> 撰寫於郵件新聞:4849...@newsgroups.borland.com...