Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #18580 > unrolled thread

How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs)

Started byclusardi2k@aol.com
First post2012-09-07 05:15 -0700
Last post2012-09-07 22:26 -0700
Articles 20 on this page of 38 — 9 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-07 05:15 -0700
    Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-09-07 12:24 +0000
      Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) "John B. Matthews" <nospam@nospam.invalid> - 2012-09-07 09:54 -0400
      Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-13 06:40 -0700
        Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-09-13 17:20 +0000
          Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-13 11:00 -0700
          Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Gene Wirchenko <genew@ocis.net> - 2012-09-13 15:36 -0700
        Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Arne Vajhøj <arne@vajhoej.dk> - 2012-09-13 20:34 -0400
    Re: How Do I Publish My Working Project (corresponding dot jar doesn't   work on other's PCs) Nigel Wade <nmw@ion.le.ac.uk> - 2012-09-07 16:17 +0100
      Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-07 11:11 -0700
        Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) "John B. Matthews" <nospam@nospam.invalid> - 2012-09-07 21:28 -0400
        Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-10 23:29 -0700
          Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-10 23:49 -0700
            Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-11 05:12 -0700
              Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) markspace <-@.> - 2012-09-11 09:25 -0700
                Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-11 11:08 -0700
                  Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) markspace <-@.> - 2012-09-11 12:45 -0700
                    Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 07:24 -0700
                      Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 08:00 -0700
                        Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) markspace <-@.> - 2012-09-12 08:21 -0700
                          Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 08:58 -0700
                            Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 09:02 -0700
                              Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) markspace <-@.> - 2012-09-12 09:15 -0700
                                Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 09:44 -0700
                                  Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 10:24 -0700
                            Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-12 10:19 -0700
                              Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 11:10 -0700
                                Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 11:26 -0700
                                  Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 11:47 -0700
                                  Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-12 12:56 -0700
                                Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-12 12:58 -0700
                            Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Arne Vajhøj <arne@vajhoej.dk> - 2012-09-12 20:45 -0400
                              Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 23:28 -0700
                        Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Arne Vajhøj <arne@vajhoej.dk> - 2012-09-12 20:43 -0400
                    Re: How Do I Publish My Working Project (corresponding dot jar doesn't   work on other's PCs) Nigel Wade <nmw@ion.le.ac.uk> - 2012-09-17 10:10 +0100
                Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-11 16:21 -0700
                  Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) markspace <-@.> - 2012-09-11 17:33 -0700
    Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Roedy Green <see_website@mindprod.com.invalid> - 2012-09-07 22:26 -0700

Page 1 of 2  [1] 2  Next page →


#18580 — How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs)

Fromclusardi2k@aol.com
Date2012-09-07 05:15 -0700
SubjectHow Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs)
Message-ID<08dcc4bb-ac13-4992-b576-1d4f51a28d2e@googlegroups.com>
Hello,

Once my NetBeans project is finalized what do I have to do to create an executable others can execute without having NetBeans directly installed on the computer.

Currently, my project contains a dot jav file which I can run to execute my project. But, when others try to execute that same dot jar it doesn't work. (Am I missing something here or should executing the dot jar always work. How should I troubleshoot this problem.)

Thank you,

[toc] | [next] | [standalone]


#18581

FromAndreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date2012-09-07 12:24 +0000
Message-ID<slrnk4jpsa.u9l.avl@gamma.logic.tuwien.ac.at>
In reply to#18580
clusardi2k@aol.com <clusardi2k@aol.com> wrote:
> Once my NetBeans project is finalized what do I have to do to create an executable others can execute without having NetBeans directly installed on the computer.
> Currently, my project contains a dot jav file which I can run to execute my project. But, when others try to execute that same dot jar it doesn't work. (Am I missing something here or should executing the dot jar always work. How should I troubleshoot this problem.)

Maybe a trivial question, but do they have Java installed?

(I mean, they shouldn't need netbeans, but they will need
at least a Java Runtime Environment (jre) to run jar files.)

[toc] | [prev] | [next] | [standalone]


#18583

From"John B. Matthews" <nospam@nospam.invalid>
Date2012-09-07 09:54 -0400
Message-ID<nospam-C3A491.09541707092012@news.aioe.org>
In reply to#18581
In article <slrnk4jpsa.u9l.avl@gamma.logic.tuwien.ac.at>,
 Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> wrote:

> clusardi2k@aol.com <clusardi2k@aol.com> wrote:
> > Once my NetBeans project is finalized what do I have to do to 
> > create an executable others can execute without having NetBeans 
> > directly installed on the computer. Currently, my project contains 
> > a dot jav file which I can run to execute my project. But, when 
> > others try to execute that same dot jar it doesn't work. (Am I 
> > missing something here or should executing the dot jar always work. 
> > How should I troubleshoot this problem.)
> 
> Maybe a trivial question, but do they have Java installed?
> 
> (I mean, they shouldn't need netbeans, but they will need
> at least a Java Runtime Environment (jre) to run jar files.)

Java Web Start appears to address this on supported platforms in the 
href provided to the version attribute of the j2se tag. I've never 
actually tried it, as my platform vendor supplies the JRE.

<http://stackoverflow.com/tags/java-web-start/info>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

[toc] | [prev] | [next] | [standalone]


#18735

Fromclusardi2k@aol.com
Date2012-09-13 06:40 -0700
Message-ID<4835cfd2-f6be-42f3-9530-f00fe785ae18@googlegroups.com>
In reply to#18581

Here's the simple approach:

http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/

Thanks everyone!

[toc] | [prev] | [next] | [standalone]


#18738

FromAndreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date2012-09-13 17:20 +0000
Message-ID<slrnk545fc.u9l.avl@gamma.logic.tuwien.ac.at>
In reply to#18735
clusardi2k@aol.com <clusardi2k@aol.com> wrote:
> Here's the simple approach: [...]

That didn't answer the question about whether your
customers even have Java installed.

It might satisfy for an answer, to describe what
symptoms of not-working they saw - or reported to you.

e.g.: "Upon double-clicking your jar file the mouse fell apart."

[toc] | [prev] | [next] | [standalone]


#18741

Fromclusardi2k@aol.com
Date2012-09-13 11:00 -0700
Message-ID<d6d2369c-b605-4df1-afe0-a6d20b902ddf@googlegroups.com>
In reply to#18738
On Thursday, September 13, 2012 1:20:45 PM UTC-4, Andreas Leitgeb wrote:
> ... wrote: > Here's the simple approach: 
> [...] That didn't answer the question about whether your customers even have 
> Java installed. It might satisfy for an answer, to describe what symptoms of 
> not-working they saw - or reported to you. e.g.: "Upon double-clicking your jar 
> file the mouse fell apart."

I don't have to explain anything else. Using the link that I supplied, it works perfectly. There are no errors showing up any longer. By following that process, the project works fine on my friends computer!.

[toc] | [prev] | [next] | [standalone]


#18751

FromGene Wirchenko <genew@ocis.net>
Date2012-09-13 15:36 -0700
Message-ID<2qn458d70t86ecu59noto6u0f4f70foic1@4ax.com>
In reply to#18738
On Thu, 13 Sep 2012 17:20:44 +0000 (UTC), Andreas Leitgeb
<avl@gamma.logic.tuwien.ac.at> wrote:

>clusardi2k@aol.com <clusardi2k@aol.com> wrote:
>> Here's the simple approach: [...]
>
>That didn't answer the question about whether your
>customers even have Java installed.
>
>It might satisfy for an answer, to describe what
>symptoms of not-working they saw - or reported to you.
>
>e.g.: "Upon double-clicking your jar file the mouse fell apart."

     Of course, one double-clicks on the jar file's filename or icon.
Someone may have tried: "I clicked the jar twice with the mouse.  The
jar broke my mouse.  And there was pickle juice all over."

     Write "click" to see the options menu.

Sincerely,

Gene Wirchenko
     

[toc] | [prev] | [next] | [standalone]


#18760

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-09-13 20:34 -0400
Message-ID<50527b9d$0$295$14726298@news.sunsite.dk>
In reply to#18735
On 9/13/2012 9:40 AM, clusardi2k@aol.com wrote:
> Here's the simple approach:
>
> http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/

It is simple but not particular good.

This is the equivalent of static linking in native languages.

Arne

[toc] | [prev] | [next] | [standalone]


#18584 — Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs)

FromNigel Wade <nmw@ion.le.ac.uk>
Date2012-09-07 16:17 +0100
SubjectRe: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs)
Message-ID<aauhg0F26rkU1@mid.individual.net>
In reply to#18580
On 07/09/12 13:15, clusardi2k@aol.com wrote:
> Hello,
>
> Once my NetBeans project is finalized what do I have to do to create an executable others can execute without having NetBeans directly installed on the computer.
>
> Currently, my project contains a dot jav file which I can run to execute my project. But, when others try to execute that same dot jar it doesn't work. (Am I missing something here or should executing the dot jar always work. How should I troubleshoot this problem.)
>
> Thank you,


What type of project did you create in NetBeans? Was it a Java 
Application? Only this type of project creates the necessary manifest in 
the project jar for it to be run simply by the java -jar project.jar 
command. There are also some other constraints which if they are not met 
will cause NetBeans to not create an "executable" jar. Offhand I cannot 
remember what they are, and I've not had this problem re-occur for some 
time.

A NetBeans Java Application should create a dist/ directory containing 
the actual project jar, and a dist/lib directory containing any required 
additional jars. It should also include an appropriate manifest in the 
project jar which makes the jar "executable" (i.e. has a Main-Class 
property). It also includes the lib/ directory in the jar Classpath.

Check the contents of your dist/ directory, and the project jar. If it 
doesn't include these features then it's not a proper Java "application" 
jar. That may mean that you didn't create it correctly, or NetBeans has 
cocked up (technical term) the project properties (this does happen). If 
this does happen the simplest alternative is to create a new Java 
Application project and copy all your sources into it. Fixing it 
manually requires dexterous manipulation of, IIRC, project.properties 
and build-impl.xml. Creating a new project is simpler, quicker, and less 
likely to bite you back in the future.

-- 
Nigel Wade

[toc] | [prev] | [next] | [standalone]


#18595

FromLew <lewbloch@gmail.com>
Date2012-09-07 11:11 -0700
Message-ID<a678337b-f349-4648-8ac6-3b854de9545c@googlegroups.com>
In reply to#18584
Nigel Wade wrote:
> What type of project did you create in NetBeans? Was it a Java 
> Application? Only this type of project creates the necessary manifest in 
> 
> the project jar for it to be run simply by the java -jar project.jar 

Not exactly. You can certainly edit the manifest in a normal JAR project or 
normal Java project. I haven't worked with the "Java Application" NetBeans 
project, but I've seen some complaints about it in this forum. Just set 
"Main-Class:" 

Read the Oracle site docs about JARs and JAR manifests. Your customers 
can run JARs via Java WebStart, as mentioned, or directly by associating 
"java -jar" with JAR files (might need "javaw -jar" on Windows platforms).

http://docs.oracle.com/javase/tutorial/deployment/jar/manifestindex.html

> command. There are also some other constraints which if they are not met 
> will cause NetBeans to not create an "executable" jar. Offhand I cannot 
> remember what they are, and I've not had this problem re-occur for some 
> time.
> 
> A NetBeans Java Application should create a dist/ directory containing 
> the actual project jar, and a dist/lib directory containing any required 
> additional jars. It should also include an appropriate manifest in the 
> project jar which makes the jar "executable" (i.e. has a Main-Class 
> property). It also includes the lib/ directory in the jar Classpath.

The manifest's "Class-Path:" header, which specifies paths relative 
to the JAR location on the target system.

> Check the contents of your dist/ directory, and the project jar. If it 
> doesn't include these features then it's not a proper Java "application" 
> jar. That may mean that you didn't create it correctly, or NetBeans has 
> cocked up (technical term) the project properties (this does happen). If 
> this does happen the simplest alternative is to create a new Java 
> Application project and copy all your sources into it. Fixing it 
> manually requires dexterous manipulation of, IIRC, project.properties 
> and build-impl.xml. Creating a new project is simpler, quicker, and less 
> likely to bite you back in the future.

You don't need to futz with NB-specific files if you edit manifests yourself, 
and also you should build from "build.xml", not IDE-specific artifacts.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#18600

From"John B. Matthews" <nospam@nospam.invalid>
Date2012-09-07 21:28 -0400
Message-ID<nospam-04BABF.21283207092012@news.aioe.org>
In reply to#18595
In article <a678337b-f349-4648-8ac6-3b854de9545c@googlegroups.com>,
 Lew <lewbloch@gmail.com> wrote:

> > Check the contents of your dist/ directory, and the project jar. If 
> > it doesn't include these features then it's not a proper Java 
> > "application" jar. That may mean that you didn't create it 
> > correctly, or NetBeans has cocked up (technical term) the project 
> > properties (this does happen). If this does happen the simplest 
> > alternative is to create a new Java Application project and copy 
> > all your sources into it. Fixing it manually requires dexterous 
> > manipulation of, IIRC, project.properties and build-impl.xml. 
> > Creating a new project is simpler, quicker, and less likely to bite 
> > you back in the future.
> 
> You don't need to futz with NB-specific files if you edit manifests 
> yourself, and also you should build from "build.xml", not 
> IDE-specific artifacts.

I like the flexibility NetBeans affords in this area:

For convenience, I can use the stock, NB-generated build.xml, even from 
the command line, and hook into it as needed:

<http://stackoverflow.com/q/3955299/230513>

Alternatively, I can add a small number of targets to my custom 
build.xml, and NB will happily adopt it in a free-form project:

<http://netbeans.org/kb/articles/freeform-config.html>

For example:

<https://sites.google.com/site/drjohnbmatthews/manifesto>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

[toc] | [prev] | [next] | [standalone]


#18640

Fromclusardi2k@aol.com
Date2012-09-10 23:29 -0700
Message-ID<83333a34-5a38-4199-a83b-db2c2c39658b@googlegroups.com>
In reply to#18595
Help, all I need is:

(1) the JDK (which one, The jars were created with NetBeans 7.1.2), 

(2) put /dist/lib/*.jars" into my classpath environment variable, and 

(3) possibly use "java -jar" and "javaw -jar"?

Thank you,

[toc] | [prev] | [next] | [standalone]


#18641

FromLew <lewbloch@gmail.com>
Date2012-09-10 23:49 -0700
Message-ID<c2b23e07-fdba-4b91-850a-1c2d104b59db@googlegroups.com>
In reply to#18640
(unknown) wrote:
> Help, all I need is:
> 
> (1) the JDK (which one, The jars were created with NetBeans 7.1.2), 

That depends on how you have NetBeans and the particular project 
configured.

Which JDK did you configure the project to use?

> (2) put /dist/lib/*.jars" into my classpath environment variable, and 

What? Huh?

You shouldn't be messing around with root-level 
directories like that.

Put your project directory under your home directory or 
in some suitable location like /projects/.

> (3) possibly use "java -jar" and "javaw -jar"?

What do you mean?

The "-jar" parameter to those commands specifies a JAR 
file for Java to run, if that's what you're asking.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#18643

Fromclusardi2k@aol.com
Date2012-09-11 05:12 -0700
Message-ID<734d3450-00d4-45cf-a760-f78a10613945@googlegroups.com>
In reply to#18641
On Tuesday, September 11, 2012 2:49:00 AM UTC-4, Lew wrote:
> (unknown) wrote: > Help, all I need is: > > (1) the JDK (which one, The jars were created with NetBeans 7.1.2), That depends on how you have NetBeans and the particular project configured. Which JDK did you configure the project to use? > (2) put /dist/lib/*.jars" into my classpath environment variable, and What? Huh? You shouldn't be messing around with root-level directories like that. Put your project directory under your home directory or in some suitable location like /projects/. > (3) possibly use "java -jar" and "javaw -jar"? What do you mean? The "-jar" parameter to those commands specifies a JAR file for Java to run, if that's what you're asking. -- Lew

On NetBeans, how do I determine what JDK I'm using. I forgot which one I loaded.

Thanks,

[toc] | [prev] | [next] | [standalone]


#18644

Frommarkspace <-@.>
Date2012-09-11 09:25 -0700
Message-ID<k2nom9$gap$1@dont-email.me>
In reply to#18643
On 9/11/2012 5:12 AM, clusardi2k@aol.com wrote:

> On NetBeans, how do I determine what JDK I'm using. I forgot which
> one I loaded.


It's in your project properties.  And it's not the one you have loaded, 
it's the one you have set for the build target.  In other words, if you 
are using JDK 7, you can still be targeting for example Java 5 in your 
project, which is useful if you have users still on Java 5 who don't 
want to upgrade.

Right-click on the project, Properties -> Sources, way down at the 
bottom it says "Sources/Binary Format", that's your target (I'm using NB 
7.2 btw, I seem to remember a slightly different option format in NB 6).

Also, you need the JRE.  The JDK is for development, your users won't 
normally need that.  All they need is the normal runtime, the JRE.  You 
personally can use the JDK, because it contains a JRE, but anyone else 
will normally just have the JRE.

To run, you use java -cp <path to all needed jars> -jar <path/your jar>

If you need to do fancier things than that (distribute over the 
internet, for example) then look into Java WebStart or consider OneJar 
if you are going to just copy the files around.

[toc] | [prev] | [next] | [standalone]


#18645

FromLew <lewbloch@gmail.com>
Date2012-09-11 11:08 -0700
Message-ID<84caa856-f49b-4ae3-8ae8-e7c5b6579b11@googlegroups.com>
In reply to#18644
markspace wrote:
> To run, you use java -cp <path to all needed jars> -jar <path/your jar>

The problem with that is that the command will ignore the "-cp" parameter.

"-cp" and "-jar" is either/or proposition.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#18646

Frommarkspace <-@.>
Date2012-09-11 12:45 -0700
Message-ID<k2o4d5$1rv$1@dont-email.me>
In reply to#18645
On 9/11/2012 11:08 AM, Lew wrote:
> markspace wrote:
>> To run, you use java -cp <path to all needed jars> -jar <path/your jar>
>
> The problem with that is that the command will ignore the "-cp" parameter.
>
> "-cp" and "-jar" is either/or proposition.
>


Yes I totally forgot about that.  I guess I don't actually run java from 
the command line very often.

That leaves setting the classpath in the jar itself, which is kind of 
tricky if you are going to be moving the jar to other people's 
computers.  Java WebStart and OneJar come in handy here.

Classpath in a jarfile:

<http://docs.oracle.com/javase/tutorial/deployment/jar/downman.html>


[toc] | [prev] | [next] | [standalone]


#18670

Fromclusardi2k@aol.com
Date2012-09-12 07:24 -0700
Message-ID<bbccb919-e3d8-48bd-881c-9d5c5d0767d3@googlegroups.com>
In reply to#18646
On Tuesday, September 11, 2012 3:45:42 PM UTC-4, markspace wrote:
> On 9/11/2012 11:08 AM, Lew wrote: > markspace wrote: 
> That leaves setting the classpath in the jar itself, which is kind of tricky if 
> you are going to be moving the jar to other people's computers. Java WebStart 
> and OneJar come in handy here. Classpath in a jarfile: 
> <http://docs.oracle.com/javase/tutorial/deployment/jar/downman.html>

I just saw this article on the Internet. My guess is I should ignore this article, right?

http://ac-support.europe.umuc.edu/~arnoldyl/NetBeansTutorials/Setting-Classpath.html

Thanks,

[toc] | [prev] | [next] | [standalone]


#18671

Fromclusardi2k@aol.com
Date2012-09-12 08:00 -0700
Message-ID<b9686186-51c7-4dcc-8e58-7604dc26ce76@googlegroups.com>
In reply to#18670
> On Wednesday, September 12, 2012 10:24:20 AM UTC-4, (unknown) wrote:
>> On Tuesday, September 11, 2012 3:45:42 PM UTC-4, markspace wrote: 
>> On 9/11/2012 11:08 AM, Lew wrote: 
>> markspace wrote: 
>> That leaves setting the classpath in the jar itself, which is kind of tricky if 
>> you are going to be moving the jar to other people's computers. Java WebStart 
>> and OneJar come in handy here. Classpath in a jarfile: 
>> <http://docs.oracle.com/javase/tutorial/deployment/jar/downman.html
>> I just saw this article on the Internet. My guess is I should ignore this 
>> article, right? http://ac-
>> support.europe.umuc.edu/~arnoldyl/NetBeansTutorials/Setting-Classpath.html 

I added the path to all my dot jars into an environment variable (user varianble and not a system variable) called classpath and was unable to run the project. I mean nothing happened.

Via the Control Panel, I have the following programs installed on my friend's computer:

   Java 7 Update 7
   Java SE Development Kit 7 Update 7
   Java(TM) 6 Update 34
   Java(TM) 6 Update 34 (64-bit) 

What's up? What do I do.

Thank you,

[toc] | [prev] | [next] | [standalone]


#18672

Frommarkspace <-@.>
Date2012-09-12 08:21 -0700
Message-ID<k2q9a8$m2g$1@dont-email.me>
In reply to#18671
On 9/12/2012 8:00 AM, clusardi2k@aol.com wrote:

>>>
> I added the path to all my dot jars into an environment variable
> (user varianble and not a system variable) called classpath and was
> unable to run the project. I mean nothing happened.
>

Learn to debug.  Add some print statements so you can trace the 
execution of your program.  Attach a debugger.

If nothing happens, that's because your app did nothing.  Java will 
print an error message if it finds a problem.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.java.programmer


csiph-web