making Exe files out of java files

C

chethantr

Hi Everybody,
i have developed a java application using netbeans5.5. Now i want to
create a exe file of it to distribute or some other file like .jar
files for distribution. i tried nativej and exe4j to do it, it is not
working and throwing exception called
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jdesktop/layout/GroupLayout$Group

Please can you help me out in this issue.
 
A

Andrew Thompson

i have developed a java application using netbeans5.5. Now i want to
create a exe file of it to distribute or some other file like .jar
files for distribution. ...

What about installation via web-start?
(It is targeted for installation off the net,
but can also be used to install off a disk)

Andrew T.
 
T

Thomas Kellerer

Hi Everybody,
i have developed a java application using netbeans5.5. Now i want to
create a exe file of it to distribute or some other file like .jar
files for distribution. i tried nativej and exe4j to do it, it is not
working and throwing exception called
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jdesktop/layout/GroupLayout$Group

You have to distribute the swing-layout-1.0.1.jar with your application. This is
usually located in netbeans_home/platform7/modules/ext (although I'm a bit
surprised, because I thought that NB 5.5 copies that file automatically to your
dist folder and includes are reference to it in the manifest file of the created
jar file)

Thomas
 
W

William R. Frensley

Andrew said:
What about installation via web-start?
(It is targeted for installation off the net,
but can also be used to install off a disk)

Andrew T.
The codebase element in the jnlp file requrires an absolute
URL, not a relative one. So, any users have to put the
disk into a specified drive (letter on MS systems).

If there is a way around this problem, I would really like to
know what it is.

- Bill Frenlsey
 
A

Andrew Thompson

William said:
Andrew Thompson wrote: ... ....
The codebase element in the jnlp file requrires an absolute
URL, not a relative one. So, any users have to put the
disk into a specified drive (letter on MS systems).

No. The 'codebase' generally points at an address on the
internet from which to get updates (it does not need to exist).

When installing from disk, you can link to a command
file (e.g. windows -> .bat) that overrides the codebase
for 'the current directory'.

Andrew T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top