Running Java Project outside of IDE
hey guys i would like to know how it's possible to run a java project outside of it's IDE.
How can i get it running on a website?
I also tried running it on my computer but...navigating to the project through cmd and using the "java project" command to run it.
Excpetion in thread "main" java.lang.NoClassDefFoundError
Caused by: java.lang.ClassNotFoundException.....
jhonnyboy
Junior Poster in Training
97 posts since Jul 2008
Reputation Points: 11
Solved Threads: 0
Read the stickies at the top of this forum; they contain all the information required for a beginner to get started with Java - from scratch.
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
Hi jhonnyboy .
you can use "j2e_enterprise" software , which converts .jar file to .exe file . Download it and try it , actually it's perfect for me .
hope my reply is helpful
best regards
eng.hosam84
That is the worst advice ever. To encourage someone to go all this trouble, when they already have a jar file that can be run. You are practically destroying the hole concept of writing the program in java.
Just because you don't have an IDE doesn't mean that you cannot run a jar file. IDEs weren't created to run files .jar or .class. Only to make life easier and to boost production.
If you read other similar threads everyone discourage the converting of a .jar into an .exe
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
Hi jhonnyboy .
you can use "j2e_enterprise" software , which converts .jar file to .exe file . Download it and try it , actually it's perfect for me .
hope my reply is helpful
best regards
eng.hosam84
if you read his post more carefully, he asks how to run his project in a web site ..
so, genious, how many of your favourite sites did you convert to an .exe lately?
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
I am *really* concerned with this recent stance taken by the regulars when dealing with posts which given out wrong information. It feels really bad when I see replies/comments along the lines of:
roseindia, are you kidding me???? One awful place they love to show-off most terrible solution
useless, irrelevant and dare someone call it even "information"
Useless information
That is the worst advice ever. To encourage someone to go all this trouble, when they already have a jar file that can be run. You are practically destroying the hole concept of writing the program in java.
so, genious, how many of your favourite sites did you convert to an .exe lately?
Great, just great, all I see is pointed words dripping with sarcasm. I'll tell you what you just did. Your comments didn't enable him to learn, they just discouraged him helping out people in the future with the fear that he would again be criticized.
So I ask you all, were you this smart/good to go with Java when you started as a beginner, would it have been wrong on your part to refer to roseindia when it was the first tutorial which came up from a web search, were you all smart enough to realize that what roseindia gives out is bad on all counts? Isn't this just *collective* knowledge you gained by being told by others / visiting the forums?
Does this poster have that kind of history of ignoring advice that you all felt it was necessary to be sarcastic and add out negative reputation? Was correcting him out by saying: "Maybe you misread the question, the OP is trying to ask something else" or "roseindia is a bad site with substandard content, try avoiding it" that hard? Was giving him a second chance that hard?
I appreciate the help given out by the forum regulars to the beginners out here; just don't make me hand out infractions under the 'Keep it pleasant' rule.
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
Thanks for the advice, but i wouldn't want to download a third party software to convert the .jar file to .exe
jhonnyboy
Junior Poster in Training
97 posts since Jul 2008
Reputation Points: 11
Solved Threads: 0
don't make me hand out infractions under the 'Keep it pleasant' rule.
Shucks I thought those were just some fictional stuff from some horror story to make us behave nicely. :-O :-O :-O :-O :-O
Just to lighten the mood here. :)
stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154
> to prove my stance being correct here
Let me say this once again; the stance of posting sarcastic/hostile comments is never the correct one. Normally hostile attitude adopted towards a forum member is rewarded with an infraction; something I try avoid giving at all costs. Maybe this stance is causing other people/forum members to adopt an easy going attitude regarding moderators / forum rules?
And regarding the tone adopted by the poster, I have had similar experiences with people having English as their second/third language; the thing they try to convey ends up being different than what they end up writing.
Like almost every forum rules out there states, if you think you have nothing more to add other than flaming the poster, please avoid making that post. Rather than bringing the poster on the right track, it might have the effect of turning a perfectly fine discussion into a flame war.
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
And regarding the tone adopted by the poster, I have had similar experiences with people having English as their second/third language; the thing they try to convey ends up being different than what they end up writing.
nobody here expects every poster's English to be without flaws, but since English is not my 2nd or 3rd language (4th, actually), it seems possible that one can write English, even if it's not your native tongue, without returning to 'ye good ole' l33t talk, or to disregard any form of normal forum-chat (and I'm not stating it was the case in this thread)
I agree, some of my posts can be rude, but considering the amount of topics here with the classical "how to create .exe files from projects", the amount of times that is answered "very, very bad idea to do so", not forgetting the fact that creating an exe here would not help the problem, certainly not, since the original post raises suspicion that we're talking about a web application.
I do appreciate the fact that he became a member, and certainly I do appreciate him trying to help other posters, but the sollution here seemed a bit like using a pitch fork to eat a bowl of spaghetti: it's possible that it works, but nine times out of ten, you'll seriously injure your mouth by trying alone.
so yes, I do reply then with a comment that might seem as 'putting him down', since the soft approach doesn't really hand out the most refreshing wake-up call.
I will, however, from now on, try to choose my words more 'delicately', so I hope that more comments on cases like this can be avoided
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
> nobody here expects every poster's English to be without flaws,
> but since English is not my 2nd or 3rd language (4th, actually)
Just because you can do it doesn't mean everyone can; each person has a different learning curve, level of perception etc. etc.
> I agree, some of my posts can be rude, but considering the
> amount of topics here with the classical "how to create .exe files
> from projects"
Disagreements are a part of forum discussions but name calling and sarcasm in the guise of correcting is something the rules don't permit. Also a wrong answer doesn't automatically qualify a post as being the bulls eye for sarcasm/negativity.
> but the sollution here seemed a bit like using a pitch fork to eat a
> bowl of spaghetti:
Then try to make him understand how to actually eat a bowl of spaghetti instead of stuffing the pitchfork down his throat, rendering him unable to eat anything his entire life.
> so yes, I do reply then with a comment that might seem as
> 'putting him down', since the soft approach doesn't really hand
> out the most refreshing wake-up call.
As an example, just because I hate someone doesn't make killing that person a logical choice. In the same manner, just because I feel something is a lost cause doesn't make breaking the rules a logical choice.
> I will, however, from now on, try to choose my words more 'delicately', so I
> hope that more comments on cases like this can be avoided
Yes, that would be really appreciated. :-)
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
Now since everyone here seems to be turning soft, and considering my tendency to blow up especially recently , I guess I too will try not to vent my life's frustrations on forum rookies.
stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154
my thread has been hijacked lol
jhonnyboy
Junior Poster in Training
97 posts since Jul 2008
Reputation Points: 11
Solved Threads: 0