Re: How do you execute a JAR file?



On Jan 29, 6:32 am, "phillip.s.pow...@xxxxxxxxx"
<phillip.s.pow...@xxxxxxxxx> wrote:
On Jan 28, 2:27 pm, Knute Johnson <nos...@xxxxxxxxxxxxxxxxxxxxxxx>
Knute Johnson
email s/nospam/knute/Do you have a package problem? Is the main class GUI.IconMaker or
IconMaker?
....
..The main class is called "IconMaker", in a "default package" that
remains unnamed by NetBeans,

Expect *all* sorts of problems with classes in the
'default' package. They *can* be successfully jar'd
and deployed, but I would say that
a) NetBeans is adding complications into the mix
b) It won't, for a normally packaged class.

The default package is really only suitable for
test and toy codes. Once you have code worth
deploying (and prefererably a lot sooner) it
should be moved from the default package,
into a conventional package.

Andrew T.

.



Relevant Pages

  • Re: NetBeans and JCreator
    ... I've been using 'default package' sine I thought it default to NetBeans. ... All of the compile and run command are grayed out. ... to the .java file, and where to put the compiled bytecode. ...
    (comp.lang.java.programmer)
  • Re: netbeans java import problem
    ... On the left side of my netBeans window in the projects tab I have the ... At the top of both mail.java and eProfile.java I have package mail; ... then refactor to rename the class. ...
    (comp.lang.java.help)
  • Re: Cannot execute method in another class!
    ... > I'm working in NetBeans and have 2 classes: ... > Putting package mario.com at the start of both classes didn't help, ... AHA! ... The code is missing. ...
    (comp.lang.java.help)
  • Re: How do you execute a JAR file?
    ... email s/nospam/knute/Do you have a package problem? ... test and toy codes. ... deploying it ...
    (comp.lang.java.help)
  • Problems importing SAXParser
    ... I'm using Netbeans IDE 4.0 and I want to use an XML parser. ... java 12: package org.apache.xerces.parsers. ... I guess I need to include something in the classpath, ... When autocompleting the last line, Netbeans shows that no Javadocs exist ...
    (comp.lang.java.help)