Results 1 to 10 of 10
Thread: [SOLVED] Java compiling concepts
- 08-19-2008, 12:12 PM #1
Member
- Join Date
- Aug 2008
- Posts
- 7
- Rep Power
- 0
[SOLVED] Java compiling concepts
Hi everyone, I'm new to the forums but not to Java.
I learnt Java several years ago, but haven't really used it since (I've been using mainly C++) and it appears that I have forgotten some underlying concepts.
I'm developing an application in JDeveloper (it's almost complete) and I'm wondering how to "compile" the application into either an exe or into a form I can put into a website.
There's a good chance that was a really stupid question, so your patience is appreciated...thanks.
- 08-19-2008, 12:24 PM #2
Member
- Join Date
- Jul 2008
- Posts
- 19
- Rep Power
- 0
If you are using an IDE like JDeveloper, just look for a menu saying "build" or "compile". It will be easy.
Also you can compile your java classes using "javac" command.
If looking for deploying it as a web application you need to create a .war file.
- 08-19-2008, 12:34 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I think he is talking about packaging a Java application. If you want to distribute as a single installation package, read more about jar files. Actually using most of Java IDEs you can easily build a jar file.
- 08-19-2008, 12:39 PM #4
Member
- Join Date
- Jul 2008
- Posts
- 19
- Rep Power
- 0
Yes, even though he says "compile", he must be meaning packaging since he has talked about an .exe file.
Then better read about jar command and .jar files in java.
- 08-19-2008, 12:51 PM #5
Member
- Join Date
- Aug 2008
- Posts
- 7
- Rep Power
- 0
Yes, ultimately I'd like to package it into an exe file. I'll read about that. Thanks guys.
- 08-19-2008, 12:53 PM #6
Member
- Join Date
- Jul 2008
- Posts
- 19
- Rep Power
- 0
Always a pressure to help someone.
- 08-19-2008, 05:06 PM #7
Member
- Join Date
- Aug 2008
- Posts
- 8
- Rep Power
- 0
Recently I've run into the same problem.
I'd like to advice some solution:
1.Just compile your project in .jar , then wraps it in Open Source Java Wrapper . Then It'll run as an Exe . Download the wrapper at Sourceforge.net . Sorry I forgot the apps name, just search using key words: Java Wrapper
2.Using Exe-Jar converter. Maybe you wish to try a commercials solutions like Exe4J from EJ Technology. I've tried this one, and it's really saves you a lot.It worths the money. It even can convert Jar directly into service apps.
3.For packaging, you may try Install4J from EJ Tech. It can automatically build installation files (plus JRE's embedded) from your projects.
But I can't gurantee for 100% the stability of your exe-converted-.jar , since my last converted .jar that run as win-service just suddenly hang-up
I think java is more stable running natively as .jar
NB:
I'm not related with the company... Just a happy customer. (I think they should pay me for promoting their software) hehe.. :D
Hope this info helps
- 08-20-2008, 07:50 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
There are lots of application available to use for deploying a jar package into an exe. Launch4J is one of a great application I've use.
- 08-20-2008, 09:56 AM #9
Member
- Join Date
- Aug 2008
- Posts
- 7
- Rep Power
- 0
Thanks everyone, problem solved.
- 08-20-2008, 10:47 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
It's much better to mark the thread as solved. :)
Similar Threads
-
getting problem in compiling java program?
By sathish04021984 in forum New To JavaReplies: 3Last Post: 07-30-2007, 09:26 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks