Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2008

Tip: Looking for answers? Try searching our database.

tired of command prompt

Thread view: 
sihle87@gmail.com - 28 Feb 2008 11:50 GMT
hi guys,

what can i do to be able to run a program without the code showing.
i'm a java programmer and i use windows for my programming. i tried
creating batch file or jar files but i think i was doing wrong. Can
you please help me?

I'll appreciate it.
voorth - 28 Feb 2008 12:03 GMT
On Feb 28, 12:50 pm, sihl...@gmail.com wrote:
> hi guys,
>
[quoted text clipped - 4 lines]
>
> I'll appreciate it.

Even though your subject is at odds with your message, I'll attempt to
answer:

In order to suppress the console, you use javaw.exe:
http://mindprod.com/jgloss/javawexe.html

I'm not sure what you mean by "the code showing". Are you referring to
stack traces on the console? (http://mindprod.com/jgloss/trace.html)
Nathandelane - 28 Feb 2008 12:51 GMT
On Feb 28, 4:50 am, sihl...@gmail.com wrote:
> hi guys,
>
[quoted text clipped - 4 lines]
>
> I'll appreciate it.

So let's go back to how you are creating the jar file. First off, are
you using any sort of IDE, like Netbeans or Eclipse? Second, are your
classes in packages, for example package comp.lang.java.project;? And
finally, when you create your jars, are you including a manifest file?
The manifest file is what ultimately tells Java (the JVM) where to
find your main class, or the class containing the main method.  If you
can answer those three questions, then I think I can better help you.
Another thing is that even when your classes aren't in jars, it should
be fairly straightforward to create a batch file to run your classes,
however if you have utilized packages, then it may not be as
straightforward.

Nathan
Lord Zoltar - 28 Feb 2008 15:16 GMT
> On Feb 28, 4:50 am, sihl...@gmail.com wrote:
>
[quoted text clipped - 20 lines]
>
> Nathan

There are also tools that can convert the jar file into a double-
clickable exe file. JSmooth comes to mind, but there are others.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.