Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > tired of command prompt

Reply
Thread Tools

tired of command prompt

 
 
sihle87@gmail.com
Guest
Posts: n/a
 
      02-28-2008
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.
 
Reply With Quote
 
 
 
 
voorth
Guest
Posts: n/a
 
      02-28-2008
On Feb 28, 12:50 pm, sihl...@gmail.com wrote:
> 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.


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)
 
Reply With Quote
 
 
 
 
Nathandelane
Guest
Posts: n/a
 
      02-28-2008
On Feb 28, 4:50 am, sihl...@gmail.com wrote:
> 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.


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
 
Reply With Quote
 
Lord Zoltar
Guest
Posts: n/a
 
      02-28-2008
On Feb 28, 7:51*am, Nathandelane <nathamberl...@gmail.com> wrote:
> On Feb 28, 4:50 am, sihl...@gmail.com wrote:
>
> > 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.

>
> 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


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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
javac command not working in command prompt chrisdude911 Java 10 03-10-2009 09:55 AM
How to open a shell prompt from an existing shell prompt gaurav kashyap Python 2 10-30-2008 09:18 AM
Tired of command Line! sihle87@gmail.com Java 11 02-14-2008 10:27 AM
Access Denied when i type command at command prompt calvin MCDST 0 03-08-2006 06:33 AM
Tired of being tired?? Debra Rosiu Computer Support 3 09-22-2003 10:12 PM



Advertisments