Home » Eclipse Projects » Eclipse Platform » Code is done... now what?
Code is done... now what? [message #215613] |
Thu, 25 March 2004 03:44  |
Eclipse User |
|
|
|
Originally posted by: fayth69.cox.net
I must be totally and completely blind...
I am just learning java and swt. I am able to successfully compile and run
my programs from within the Eclipse environment. Now I would like to send
some of my programs to a friend to show him what I am doing. For the life of
me I cannot find one bit of documentation on what I need to include with the
..java file nor am I familiar with the exact command to use to run it. I've
now peeled my eyelids off for the last 4 hours trying to find documentation.
Could somebody please assist me? I'm so lost and frustrated at this point...
Thank you in advance... fayth
|
|
| | | |
Re: Code is done... now what? [message #215979 is a reply to message #215849] |
Thu, 25 March 2004 16:17   |
Eclipse User |
|
|
|
Originally posted by: fayth.ut-mapdepot.com
I'm sorry Marcelo, I'm not getting any results. I've told Eclipse to pack
everything it can, I've installed swt.jar and the dll's in the \java\lib
\java\bin folders, I've tried a million variations of the java -classpath
and java -Djava.library.path= command line options. I still get the same
error as before.
Is there some documentation on how to do this? I can't believe this
documentation is not more easily accessible, I don't mean that in a bad
way - I'm just frustrated :P.
Sincerely, Fayth
"marcelo correia" <mcorreia@linkz.com.br> wrote in message
news:c3v5p6$de4$1@eclipse.org...
> Your application needs the swt library.
>
> I believe you can pack it with your app, or put it into your classpath.
>
> m.
>
>
>
> Fayth wrote:
> > Marcelo... thank you very much for your response. I receive errors when
I
> > try to run this...
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/eclipse/swt/widgets/Composite
> > at java.lang.ClassLoader.defineClass0(Native Method)
> > at java.lang.ClassLoader.defineClass(Unknown Source)
> > at java.security.SecureClassLoader.defineClass(Unknown Source)
> > at java.net.URLClassLoader.defineClass(Unknown Source)
> > at java.net.URLClassLoader.access$100(Unknown Source)
> > at java.net.URLClassLoader$1.run(Unknown Source)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(Unknown Source)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> >
> > I exported the jar like you said, made sure I generated the Manifest
file
> > and selected the Main-Class entry-point. Do I need to export swt.jar
too? Is
> > this a library issue or classpath issue?
> >
> > Sincerely,
> > Fayth
> >
> > "marcelo correia" <mcorreia@linkz.com.br> wrote in message
> > news:c3uv2b$4ar$1@eclipse.org...
> >
> >>You can create a jar package for your aplication.
> >>
> >>Once you get the package, the command line is:
> >>
> >>java -jar yourPackage.jar
> >>
> >>remember that you need a Manifest referencing your Main-Class.
> >>
> >>m.
> >>
> >>
> >>Eclipse News wrote:
> >>
> >>>I must be totally and completely blind...
> >>>
> >>> I am just learning java and swt. I am able to successfully compile and
> >
> > run
> >
> >>>my programs from within the Eclipse environment. Now I would like to
> >
> > send
> >
> >>>some of my programs to a friend to show him what I am doing. For the
> >
> > life of
> >
> >>>me I cannot find one bit of documentation on what I need to include
with
> >
> > the
> >
> >>>.java file nor am I familiar with the exact command to use to run it.
> >
> > I've
> >
> >>>now peeled my eyelids off for the last 4 hours trying to find
> >
> > documentation.
> >
> >>>Could somebody please assist me? I'm so lost and frustrated at this
> >
> > point...
> >
> >>>Thank you in advance... fayth
> >>>
> >>>
> >
> >
> >
|
|
|
Re: Code is done... now what? [message #216005 is a reply to message #215979] |
Thu, 25 March 2004 17:46   |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Have you created a plugin, or a java program? Are you using any eclipse
clases like SWT in your program, or is it pure java code?
Fayth wrote:
> I'm sorry Marcelo, I'm not getting any results. I've told Eclipse to pack
> everything it can, I've installed swt.jar and the dll's in the \java\lib
> \java\bin folders, I've tried a million variations of the java -classpath
> and java -Djava.library.path= command line options. I still get the same
> error as before.
>
> Is there some documentation on how to do this? I can't believe this
> documentation is not more easily accessible, I don't mean that in a bad
> way - I'm just frustrated :P.
>
> Sincerely, Fayth
>
> "marcelo correia" <mcorreia@linkz.com.br> wrote in message
> news:c3v5p6$de4$1@eclipse.org...
>
>>Your application needs the swt library.
>>
>>I believe you can pack it with your app, or put it into your classpath.
>>
>>m.
>>
>>
>>
>>Fayth wrote:
>>
>>>Marcelo... thank you very much for your response. I receive errors when
>
> I
>
>>>try to run this...
>>>
>>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>>org/eclipse/swt/widgets/Composite
>>> at java.lang.ClassLoader.defineClass0(Native Method)
>>> at java.lang.ClassLoader.defineClass(Unknown Source)
>>> at java.security.SecureClassLoader.defineClass(Unknown Source)
>>> at java.net.URLClassLoader.defineClass(Unknown Source)
>>> at java.net.URLClassLoader.access$100(Unknown Source)
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>>
>>>I exported the jar like you said, made sure I generated the Manifest
>
> file
>
>>>and selected the Main-Class entry-point. Do I need to export swt.jar
>
> too? Is
>
>>>this a library issue or classpath issue?
>>>
>>>Sincerely,
>>> Fayth
>>>
>>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
>>>news:c3uv2b$4ar$1@eclipse.org...
>>>
>>>
>>>>You can create a jar package for your aplication.
>>>>
>>>>Once you get the package, the command line is:
>>>>
>>>>java -jar yourPackage.jar
>>>>
>>>>remember that you need a Manifest referencing your Main-Class.
>>>>
>>>>m.
>>>>
>>>>
>>>>Eclipse News wrote:
>>>>
>>>>
>>>>>I must be totally and completely blind...
>>>>>
>>>>>I am just learning java and swt. I am able to successfully compile and
>>>
>>>run
>>>
>>>
>>>>>my programs from within the Eclipse environment. Now I would like to
>>>
>>>send
>>>
>>>
>>>>>some of my programs to a friend to show him what I am doing. For the
>>>
>>>life of
>>>
>>>
>>>>>me I cannot find one bit of documentation on what I need to include
>
> with
>
>>>the
>>>
>>>
>>>>>.java file nor am I familiar with the exact command to use to run it.
>>>
>>>I've
>>>
>>>
>>>>>now peeled my eyelids off for the last 4 hours trying to find
>>>
>>>documentation.
>>>
>>>
>>>>>Could somebody please assist me? I'm so lost and frustrated at this
>>>
>>>point...
>>>
>>>
>>>>>Thank you in advance... fayth
>>>>>
>>>>>
>>>
>>>
>>>
>
>
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1
GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
|
|
|
Re: Code is done... now what? [message #216047 is a reply to message #215979] |
Thu, 25 March 2004 18:33   |
Eclipse User |
|
|
|
Originally posted by: mcorreia.linkz.com.br
Have you tried to put swt.jar at: $JAVA_HOME:/jre/lib/ext ??
m.
Fayth wrote:
> I'm sorry Marcelo, I'm not getting any results. I've told Eclipse to pack
> everything it can, I've installed swt.jar and the dll's in the \java\lib
> \java\bin folders, I've tried a million variations of the java -classpath
> and java -Djava.library.path= command line options. I still get the same
> error as before.
>
> Is there some documentation on how to do this? I can't believe this
> documentation is not more easily accessible, I don't mean that in a bad
> way - I'm just frustrated :P.
>
> Sincerely, Fayth
>
> "marcelo correia" <mcorreia@linkz.com.br> wrote in message
> news:c3v5p6$de4$1@eclipse.org...
>
>>Your application needs the swt library.
>>
>>I believe you can pack it with your app, or put it into your classpath.
>>
>>m.
>>
>>
>>
>>Fayth wrote:
>>
>>>Marcelo... thank you very much for your response. I receive errors when
>
> I
>
>>>try to run this...
>>>
>>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>>org/eclipse/swt/widgets/Composite
>>> at java.lang.ClassLoader.defineClass0(Native Method)
>>> at java.lang.ClassLoader.defineClass(Unknown Source)
>>> at java.security.SecureClassLoader.defineClass(Unknown Source)
>>> at java.net.URLClassLoader.defineClass(Unknown Source)
>>> at java.net.URLClassLoader.access$100(Unknown Source)
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>>
>>>I exported the jar like you said, made sure I generated the Manifest
>
> file
>
>>>and selected the Main-Class entry-point. Do I need to export swt.jar
>
> too? Is
>
>>>this a library issue or classpath issue?
>>>
>>>Sincerely,
>>> Fayth
>>>
>>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
>>>news:c3uv2b$4ar$1@eclipse.org...
>>>
>>>
>>>>You can create a jar package for your aplication.
>>>>
>>>>Once you get the package, the command line is:
>>>>
>>>>java -jar yourPackage.jar
>>>>
>>>>remember that you need a Manifest referencing your Main-Class.
>>>>
>>>>m.
>>>>
>>>>
>>>>Eclipse News wrote:
>>>>
>>>>
>>>>>I must be totally and completely blind...
>>>>>
>>>>>I am just learning java and swt. I am able to successfully compile and
>>>
>>>run
>>>
>>>
>>>>>my programs from within the Eclipse environment. Now I would like to
>>>
>>>send
>>>
>>>
>>>>>some of my programs to a friend to show him what I am doing. For the
>>>
>>>life of
>>>
>>>
>>>>>me I cannot find one bit of documentation on what I need to include
>
> with
>
>>>the
>>>
>>>
>>>>>.java file nor am I familiar with the exact command to use to run it.
>>>
>>>I've
>>>
>>>
>>>>>now peeled my eyelids off for the last 4 hours trying to find
>>>
>>>documentation.
>>>
>>>
>>>>>Could somebody please assist me? I'm so lost and frustrated at this
>>>
>>>point...
>>>
>>>
>>>>>Thank you in advance... fayth
>>>>>
>>>>>
>>>
>>>
>>>
>
>
|
|
|
Re: Code is done... now what? [message #216114 is a reply to message #215979] |
Fri, 26 March 2004 00:26   |
Eclipse User |
|
|
|
Originally posted by: fayth.ut-mapdepot.com
Gilbert and Marcelo... I finally figured out that the swt.jar goes in the
\lib\ext folder, I was correct in putting the dll in the \bin folder. Next I
needed -Djava.library.path=<thepath to \lib\ext> in my command line when I
ran my demo. :)
Thank you both, especially Marcelo, for answering me. I'm on my way!!!!
Sincerely, Fayth
"Fayth" <fayth@ut-mapdepot.com> wrote in message
news:c3vi02$sfj$1@eclipse.org...
> I'm sorry Marcelo, I'm not getting any results. I've told Eclipse to pack
> everything it can, I've installed swt.jar and the dll's in the \java\lib
> \java\bin folders, I've tried a million variations of the java -classpath
> and java -Djava.library.path= command line options. I still get the same
> error as before.
>
> Is there some documentation on how to do this? I can't believe this
> documentation is not more easily accessible, I don't mean that in a bad
> way - I'm just frustrated :P.
>
> Sincerely, Fayth
>
> "marcelo correia" <mcorreia@linkz.com.br> wrote in message
> news:c3v5p6$de4$1@eclipse.org...
> > Your application needs the swt library.
> >
> > I believe you can pack it with your app, or put it into your classpath.
> >
> > m.
> >
> >
> >
> > Fayth wrote:
> > > Marcelo... thank you very much for your response. I receive errors
when
> I
> > > try to run this...
> > >
> > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > org/eclipse/swt/widgets/Composite
> > > at java.lang.ClassLoader.defineClass0(Native Method)
> > > at java.lang.ClassLoader.defineClass(Unknown Source)
> > > at java.security.SecureClassLoader.defineClass(Unknown Source)
> > > at java.net.URLClassLoader.defineClass(Unknown Source)
> > > at java.net.URLClassLoader.access$100(Unknown Source)
> > > at java.net.URLClassLoader$1.run(Unknown Source)
> > > at java.security.AccessController.doPrivileged(Native Method)
> > > at java.net.URLClassLoader.findClass(Unknown Source)
> > > at java.lang.ClassLoader.loadClass(Unknown Source)
> > > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> > > at java.lang.ClassLoader.loadClass(Unknown Source)
> > > at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> > >
> > > I exported the jar like you said, made sure I generated the Manifest
> file
> > > and selected the Main-Class entry-point. Do I need to export swt.jar
> too? Is
> > > this a library issue or classpath issue?
> > >
> > > Sincerely,
> > > Fayth
> > >
> > > "marcelo correia" <mcorreia@linkz.com.br> wrote in message
> > > news:c3uv2b$4ar$1@eclipse.org...
> > >
> > >>You can create a jar package for your aplication.
> > >>
> > >>Once you get the package, the command line is:
> > >>
> > >>java -jar yourPackage.jar
> > >>
> > >>remember that you need a Manifest referencing your Main-Class.
> > >>
> > >>m.
> > >>
> > >>
> > >>Eclipse News wrote:
> > >>
> > >>>I must be totally and completely blind...
> > >>>
> > >>> I am just learning java and swt. I am able to successfully compile
and
> > >
> > > run
> > >
> > >>>my programs from within the Eclipse environment. Now I would like to
> > >
> > > send
> > >
> > >>>some of my programs to a friend to show him what I am doing. For the
> > >
> > > life of
> > >
> > >>>me I cannot find one bit of documentation on what I need to include
> with
> > >
> > > the
> > >
> > >>>.java file nor am I familiar with the exact command to use to run it.
> > >
> > > I've
> > >
> > >>>now peeled my eyelids off for the last 4 hours trying to find
> > >
> > > documentation.
> > >
> > >>>Could somebody please assist me? I'm so lost and frustrated at this
> > >
> > > point...
> > >
> > >>>Thank you in advance... fayth
> > >>>
> > >>>
> > >
> > >
> > >
>
>
|
|
|
Re: Code is done... now what? [message #216222 is a reply to message #216114] |
Fri, 26 March 2004 08:34   |
Eclipse User |
|
|
|
Originally posted by: mcorreia.linkz.com.br
Cheers
m.
Fayth wrote:
> Gilbert and Marcelo... I finally figured out that the swt.jar goes in the
> \lib\ext folder, I was correct in putting the dll in the \bin folder. Next I
> needed -Djava.library.path=<thepath to \lib\ext> in my command line when I
> ran my demo. :)
>
> Thank you both, especially Marcelo, for answering me. I'm on my way!!!!
>
> Sincerely, Fayth
>
> "Fayth" <fayth@ut-mapdepot.com> wrote in message
> news:c3vi02$sfj$1@eclipse.org...
>
>>I'm sorry Marcelo, I'm not getting any results. I've told Eclipse to pack
>>everything it can, I've installed swt.jar and the dll's in the \java\lib
>>\java\bin folders, I've tried a million variations of the java -classpath
>>and java -Djava.library.path= command line options. I still get the same
>>error as before.
>>
>>Is there some documentation on how to do this? I can't believe this
>>documentation is not more easily accessible, I don't mean that in a bad
>>way - I'm just frustrated :P.
>>
>>Sincerely, Fayth
>>
>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
>>news:c3v5p6$de4$1@eclipse.org...
>>
>>>Your application needs the swt library.
>>>
>>>I believe you can pack it with your app, or put it into your classpath.
>>>
>>>m.
>>>
>>>
>>>
>>>Fayth wrote:
>>>
>>>>Marcelo... thank you very much for your response. I receive errors
>
> when
>
>>I
>>
>>>>try to run this...
>>>>
>>>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>org/eclipse/swt/widgets/Composite
>>>> at java.lang.ClassLoader.defineClass0(Native Method)
>>>> at java.lang.ClassLoader.defineClass(Unknown Source)
>>>> at java.security.SecureClassLoader.defineClass(Unknown Source)
>>>> at java.net.URLClassLoader.defineClass(Unknown Source)
>>>> at java.net.URLClassLoader.access$100(Unknown Source)
>>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>>>
>>>>I exported the jar like you said, made sure I generated the Manifest
>>
>>file
>>
>>>>and selected the Main-Class entry-point. Do I need to export swt.jar
>>
>>too? Is
>>
>>>>this a library issue or classpath issue?
>>>>
>>>>Sincerely,
>>>> Fayth
>>>>
>>>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
>>>>news:c3uv2b$4ar$1@eclipse.org...
>>>>
>>>>
>>>>>You can create a jar package for your aplication.
>>>>>
>>>>>Once you get the package, the command line is:
>>>>>
>>>>>java -jar yourPackage.jar
>>>>>
>>>>>remember that you need a Manifest referencing your Main-Class.
>>>>>
>>>>>m.
>>>>>
>>>>>
>>>>>Eclipse News wrote:
>>>>>
>>>>>
>>>>>>I must be totally and completely blind...
>>>>>>
>>>>>>I am just learning java and swt. I am able to successfully compile
>
> and
>
>>>>run
>>>>
>>>>
>>>>>>my programs from within the Eclipse environment. Now I would like to
>>>>
>>>>send
>>>>
>>>>
>>>>>>some of my programs to a friend to show him what I am doing. For the
>>>>
>>>>life of
>>>>
>>>>
>>>>>>me I cannot find one bit of documentation on what I need to include
>>
>>with
>>
>>>>the
>>>>
>>>>
>>>>>>.java file nor am I familiar with the exact command to use to run it.
>>>>
>>>>I've
>>>>
>>>>
>>>>>>now peeled my eyelids off for the last 4 hours trying to find
>>>>
>>>>documentation.
>>>>
>>>>
>>>>>>Could somebody please assist me? I'm so lost and frustrated at this
>>>>
>>>>point...
>>>>
>>>>
>>>>>>Thank you in advance... fayth
>>>>>>
>>>>>>
>>>>
>>>>
>>>>
>>
>
>
|
|
|
Re: Code is done... now what? [message #216295 is a reply to message #216114] |
Fri, 26 March 2004 09:58   |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Fayth wrote:
> Gilbert and Marcelo... I finally figured out that the swt.jar goes in the
> \lib\ext folder, I was correct in putting the dll in the \bin folder. Next I
> needed -Djava.library.path=<thepath to \lib\ext> in my command line when I
> ran my demo. :)
That is odd. Seems like you put the file in the *wrong* \lib\ext
folder. Since you have the JDK, you have two \lib\ext folders. This
folder is loaded automatically by the JRE. So you should not need that
-D line. use that line if you put the jar in your own location
somewhere, which is best anyway because it probably slows the loading fo
the jvm a bit.
you have a \lib\ext folder probably in c:/jdk/jre/lib/ext and another in
c:/program files/java/jre/lib/ext
make sure the java.exe you are running corresponds to the ext folder you
put the swt in.
>
> Thank you both, especially Marcelo, for answering me. I'm on my way!!!!
>
> Sincerely, Fayth
>
> "Fayth" <fayth@ut-mapdepot.com> wrote in message
> news:c3vi02$sfj$1@eclipse.org...
>
>>I'm sorry Marcelo, I'm not getting any results. I've told Eclipse to pack
>>everything it can, I've installed swt.jar and the dll's in the \java\lib
>>\java\bin folders, I've tried a million variations of the java -classpath
>>and java -Djava.library.path= command line options. I still get the same
>>error as before.
>>
>>Is there some documentation on how to do this? I can't believe this
>>documentation is not more easily accessible, I don't mean that in a bad
>>way - I'm just frustrated :P.
>>
>>Sincerely, Fayth
>>
>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
>>news:c3v5p6$de4$1@eclipse.org...
>>
>>>Your application needs the swt library.
>>>
>>>I believe you can pack it with your app, or put it into your classpath.
>>>
>>>m.
>>>
>>>
>>>
>>>Fayth wrote:
>>>
>>>>Marcelo... thank you very much for your response. I receive errors
>
> when
>
>>I
>>
>>>>try to run this...
>>>>
>>>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>org/eclipse/swt/widgets/Composite
>>>> at java.lang.ClassLoader.defineClass0(Native Method)
>>>> at java.lang.ClassLoader.defineClass(Unknown Source)
>>>> at java.security.SecureClassLoader.defineClass(Unknown Source)
>>>> at java.net.URLClassLoader.defineClass(Unknown Source)
>>>> at java.net.URLClassLoader.access$100(Unknown Source)
>>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>>>
>>>>I exported the jar like you said, made sure I generated the Manifest
>>
>>file
>>
>>>>and selected the Main-Class entry-point. Do I need to export swt.jar
>>
>>too? Is
>>
>>>>this a library issue or classpath issue?
>>>>
>>>>Sincerely,
>>>> Fayth
>>>>
>>>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
>>>>news:c3uv2b$4ar$1@eclipse.org...
>>>>
>>>>
>>>>>You can create a jar package for your aplication.
>>>>>
>>>>>Once you get the package, the command line is:
>>>>>
>>>>>java -jar yourPackage.jar
>>>>>
>>>>>remember that you need a Manifest referencing your Main-Class.
>>>>>
>>>>>m.
>>>>>
>>>>>
>>>>>Eclipse News wrote:
>>>>>
>>>>>
>>>>>>I must be totally and completely blind...
>>>>>>
>>>>>>I am just learning java and swt. I am able to successfully compile
>
> and
>
>>>>run
>>>>
>>>>
>>>>>>my programs from within the Eclipse environment. Now I would like to
>>>>
>>>>send
>>>>
>>>>
>>>>>>some of my programs to a friend to show him what I am doing. For the
>>>>
>>>>life of
>>>>
>>>>
>>>>>>me I cannot find one bit of documentation on what I need to include
>>
>>with
>>
>>>>the
>>>>
>>>>
>>>>>>.java file nor am I familiar with the exact command to use to run it.
>>>>
>>>>I've
>>>>
>>>>
>>>>>>now peeled my eyelids off for the last 4 hours trying to find
>>>>
>>>>documentation.
>>>>
>>>>
>>>>>>Could somebody please assist me? I'm so lost and frustrated at this
>>>>
>>>>point...
>>>>
>>>>
>>>>>>Thank you in advance... fayth
>>>>>>
>>>>>>
>>>>
>>>>
>>>>
>>
>
>
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1
GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
|
|
|
Re: Code is done... now what? [message #216316 is a reply to message #216295] |
Fri, 26 March 2004 10:50   |
Eclipse User |
|
|
|
Originally posted by: fayth.ut-mapdepot.com
So you're saying it SHOULD go in the \j2re.1.4_03\jre\lib\etc??? What
happens when I distribute it to, say, people who only have the java Virtual
Machine installed (11MB versus 136MB)?
Fayth
"CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in message
news:c41g6c$u3u$1@eclipse.org...
> Fayth wrote:
> > Gilbert and Marcelo... I finally figured out that the swt.jar goes in
the
> > \lib\ext folder, I was correct in putting the dll in the \bin folder.
Next I
> > needed -Djava.library.path=<thepath to \lib\ext> in my command line when
I
> > ran my demo. :)
>
> That is odd. Seems like you put the file in the *wrong* \lib\ext
> folder. Since you have the JDK, you have two \lib\ext folders. This
> folder is loaded automatically by the JRE. So you should not need that
> -D line. use that line if you put the jar in your own location
> somewhere, which is best anyway because it probably slows the loading fo
> the jvm a bit.
>
> you have a \lib\ext folder probably in c:/jdk/jre/lib/ext and another in
> c:/program files/java/jre/lib/ext
>
> make sure the java.exe you are running corresponds to the ext folder you
> put the swt in.
>
>
> >
> > Thank you both, especially Marcelo, for answering me. I'm on my way!!!!
> >
> > Sincerely, Fayth
> >
> > "Fayth" <fayth@ut-mapdepot.com> wrote in message
> > news:c3vi02$sfj$1@eclipse.org...
> >
> >>I'm sorry Marcelo, I'm not getting any results. I've told Eclipse to
pack
> >>everything it can, I've installed swt.jar and the dll's in the \java\lib
> >>\java\bin folders, I've tried a million variations of the
java -classpath
> >>and java -Djava.library.path= command line options. I still get the same
> >>error as before.
> >>
> >>Is there some documentation on how to do this? I can't believe this
> >>documentation is not more easily accessible, I don't mean that in a bad
> >>way - I'm just frustrated :P.
> >>
> >>Sincerely, Fayth
> >>
> >>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
> >>news:c3v5p6$de4$1@eclipse.org...
> >>
> >>>Your application needs the swt library.
> >>>
> >>>I believe you can pack it with your app, or put it into your classpath.
> >>>
> >>>m.
> >>>
> >>>
> >>>
> >>>Fayth wrote:
> >>>
> >>>>Marcelo... thank you very much for your response. I receive errors
> >
> > when
> >
> >>I
> >>
> >>>>try to run this...
> >>>>
> >>>>Exception in thread "main" java.lang.NoClassDefFoundError:
> >>>>org/eclipse/swt/widgets/Composite
> >>>> at java.lang.ClassLoader.defineClass0(Native Method)
> >>>> at java.lang.ClassLoader.defineClass(Unknown Source)
> >>>> at java.security.SecureClassLoader.defineClass(Unknown Source)
> >>>> at java.net.URLClassLoader.defineClass(Unknown Source)
> >>>> at java.net.URLClassLoader.access$100(Unknown Source)
> >>>> at java.net.URLClassLoader$1.run(Unknown Source)
> >>>> at java.security.AccessController.doPrivileged(Native Method)
> >>>> at java.net.URLClassLoader.findClass(Unknown Source)
> >>>> at java.lang.ClassLoader.loadClass(Unknown Source)
> >>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> >>>> at java.lang.ClassLoader.loadClass(Unknown Source)
> >>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> >>>>
> >>>>I exported the jar like you said, made sure I generated the Manifest
> >>
> >>file
> >>
> >>>>and selected the Main-Class entry-point. Do I need to export swt.jar
> >>
> >>too? Is
> >>
> >>>>this a library issue or classpath issue?
> >>>>
> >>>>Sincerely,
> >>>> Fayth
> >>>>
> >>>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
> >>>>news:c3uv2b$4ar$1@eclipse.org...
> >>>>
> >>>>
> >>>>>You can create a jar package for your aplication.
> >>>>>
> >>>>>Once you get the package, the command line is:
> >>>>>
> >>>>>java -jar yourPackage.jar
> >>>>>
> >>>>>remember that you need a Manifest referencing your Main-Class.
> >>>>>
> >>>>>m.
> >>>>>
> >>>>>
> >>>>>Eclipse News wrote:
> >>>>>
> >>>>>
> >>>>>>I must be totally and completely blind...
> >>>>>>
> >>>>>>I am just learning java and swt. I am able to successfully compile
> >
> > and
> >
> >>>>run
> >>>>
> >>>>
> >>>>>>my programs from within the Eclipse environment. Now I would like to
> >>>>
> >>>>send
> >>>>
> >>>>
> >>>>>>some of my programs to a friend to show him what I am doing. For the
> >>>>
> >>>>life of
> >>>>
> >>>>
> >>>>>>me I cannot find one bit of documentation on what I need to include
> >>
> >>with
> >>
> >>>>the
> >>>>
> >>>>
> >>>>>>.java file nor am I familiar with the exact command to use to run
it.
> >>>>
> >>>>I've
> >>>>
> >>>>
> >>>>>>now peeled my eyelids off for the last 4 hours trying to find
> >>>>
> >>>>documentation.
> >>>>
> >>>>
> >>>>>>Could somebody please assist me? I'm so lost and frustrated at this
> >>>>
> >>>>point...
> >>>>
> >>>>
> >>>>>>Thank you in advance... fayth
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>>>
> >>
> >
> >
>
>
> --
> Respectfully,
>
>
> CL Gilbert
>
> "Verily, verily, I say unto you, He that entereth not by the door() into
> the sheepfold{}, but climbeth up some other *way, the same is a thief
> and a robber." John 10:1
>
> GnuPG Key Fingerprint:
> 82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
>
> For a free Java interface to Freechess.org see
> http://www.rigidsoftware.com/Chess/chess.html
|
|
|
Re: Code is done... now what? [message #216364 is a reply to message #216316] |
Fri, 26 March 2004 12:21   |
Eclipse User |
|
|
|
Originally posted by: mcorreia.linkz.com.br
They need the jre(around 10mb). You can put swt.jar on it.
I think thats all you need.
cheers
m.
Fayth wrote:
> So you're saying it SHOULD go in the \j2re.1.4_03\jre\lib\etc??? What
> happens when I distribute it to, say, people who only have the java Virtual
> Machine installed (11MB versus 136MB)?
>
> Fayth
>
> "CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in message
> news:c41g6c$u3u$1@eclipse.org...
>
>>Fayth wrote:
>>
>>>Gilbert and Marcelo... I finally figured out that the swt.jar goes in
>
> the
>
>>>\lib\ext folder, I was correct in putting the dll in the \bin folder.
>
> Next I
>
>>>needed -Djava.library.path=<thepath to \lib\ext> in my command line when
>
> I
>
>>>ran my demo. :)
>>
>>That is odd. Seems like you put the file in the *wrong* \lib\ext
>>folder. Since you have the JDK, you have two \lib\ext folders. This
>>folder is loaded automatically by the JRE. So you should not need that
>>-D line. use that line if you put the jar in your own location
>>somewhere, which is best anyway because it probably slows the loading fo
>>the jvm a bit.
>>
>>you have a \lib\ext folder probably in c:/jdk/jre/lib/ext and another in
>>c:/program files/java/jre/lib/ext
>>
>>make sure the java.exe you are running corresponds to the ext folder you
>>put the swt in.
>>
>>
>>
>>>Thank you both, especially Marcelo, for answering me. I'm on my way!!!!
>>>
>>>Sincerely, Fayth
>>>
>>>"Fayth" <fayth@ut-mapdepot.com> wrote in message
>>>news:c3vi02$sfj$1@eclipse.org...
>>>
>>>
>>>>I'm sorry Marcelo, I'm not getting any results. I've told Eclipse to
>
> pack
>
>>>>everything it can, I've installed swt.jar and the dll's in the \java\lib
>>>>\java\bin folders, I've tried a million variations of the
>
> java -classpath
>
>>>>and java -Djava.library.path= command line options. I still get the same
>>>>error as before.
>>>>
>>>>Is there some documentation on how to do this? I can't believe this
>>>>documentation is not more easily accessible, I don't mean that in a bad
>>>>way - I'm just frustrated :P.
>>>>
>>>>Sincerely, Fayth
>>>>
>>>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
>>>>news:c3v5p6$de4$1@eclipse.org...
>>>>
>>>>
>>>>>Your application needs the swt library.
>>>>>
>>>>>I believe you can pack it with your app, or put it into your classpath.
>>>>>
>>>>>m.
>>>>>
>>>>>
>>>>>
>>>>>Fayth wrote:
>>>>>
>>>>>
>>>>>>Marcelo... thank you very much for your response. I receive errors
>>>
>>>when
>>>
>>>
>>>>I
>>>>
>>>>
>>>>>>try to run this...
>>>>>>
>>>>>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>>>org/eclipse/swt/widgets/Composite
>>>>>> at java.lang.ClassLoader.defineClass0(Native Method)
>>>>>> at java.lang.ClassLoader.defineClass(Unknown Source)
>>>>>> at java.security.SecureClassLoader.defineClass(Unknown Source)
>>>>>> at java.net.URLClassLoader.defineClass(Unknown Source)
>>>>>> at java.net.URLClassLoader.access$100(Unknown Source)
>>>>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>>>>>
>>>>>>I exported the jar like you said, made sure I generated the Manifest
>>>>
>>>>file
>>>>
>>>>
>>>>>>and selected the Main-Class entry-point. Do I need to export swt.jar
>>>>
>>>>too? Is
>>>>
>>>>
>>>>>>this a library issue or classpath issue?
>>>>>>
>>>>>>Sincerely,
>>>>>> Fayth
>>>>>>
>>>>>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
>>>>>>news:c3uv2b$4ar$1@eclipse.org...
>>>>>>
>>>>>>
>>>>>>
>>>>>>>You can create a jar package for your aplication.
>>>>>>>
>>>>>>>Once you get the package, the command line is:
>>>>>>>
>>>>>>>java -jar yourPackage.jar
>>>>>>>
>>>>>>>remember that you need a Manifest referencing your Main-Class.
>>>>>>>
>>>>>>>m.
>>>>>>>
>>>>>>>
>>>>>>>Eclipse News wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>I must be totally and completely blind...
>>>>>>>>
>>>>>>>>I am just learning java and swt. I am able to successfully compile
>>>
>>>and
>>>
>>>
>>>>>>run
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>my programs from within the Eclipse environment. Now I would like to
>>>>>>
>>>>>>send
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>some of my programs to a friend to show him what I am doing. For the
>>>>>>
>>>>>>life of
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>me I cannot find one bit of documentation on what I need to include
>>>>
>>>>with
>>>>
>>>>
>>>>>>the
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>.java file nor am I familiar with the exact command to use to run
>
> it.
>
>>>>>>I've
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>now peeled my eyelids off for the last 4 hours trying to find
>>>>>>
>>>>>>documentation.
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>Could somebody please assist me? I'm so lost and frustrated at this
>>>>>>
>>>>>>point...
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>Thank you in advance... fayth
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>
>>
>>--
>>Respectfully,
>>
>>
>>CL Gilbert
>>
>>"Verily, verily, I say unto you, He that entereth not by the door() into
>>the sheepfold{}, but climbeth up some other *way, the same is a thief
>>and a robber." John 10:1
>>
>>GnuPG Key Fingerprint:
>>82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
>>
>>For a free Java interface to Freechess.org see
>>http://www.rigidsoftware.com/Chess/chess.html
>
>
>
|
|
|
Re: Code is done... now what? [message #216413 is a reply to message #216364] |
Fri, 26 March 2004 15:01  |
Eclipse User |
|
|
|
Originally posted by: fayth.ut-mapdepot.com
Cool ... thanks for all the assistance guys!!! Very much appreciated!
Fayth
"marcelo correia" <mcorreia@linkz.com.br> wrote in message
news:c41ohp$9uf$1@eclipse.org...
> They need the jre(around 10mb). You can put swt.jar on it.
>
> I think thats all you need.
>
> cheers
>
> m.
>
> Fayth wrote:
> > So you're saying it SHOULD go in the \j2re.1.4_03\jre\lib\etc??? What
> > happens when I distribute it to, say, people who only have the java
Virtual
> > Machine installed (11MB versus 136MB)?
> >
> > Fayth
> >
> > "CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in
message
> > news:c41g6c$u3u$1@eclipse.org...
> >
> >>Fayth wrote:
> >>
> >>>Gilbert and Marcelo... I finally figured out that the swt.jar goes in
> >
> > the
> >
> >>>\lib\ext folder, I was correct in putting the dll in the \bin folder.
> >
> > Next I
> >
> >>>needed -Djava.library.path=<thepath to \lib\ext> in my command line
when
> >
> > I
> >
> >>>ran my demo. :)
> >>
> >>That is odd. Seems like you put the file in the *wrong* \lib\ext
> >>folder. Since you have the JDK, you have two \lib\ext folders. This
> >>folder is loaded automatically by the JRE. So you should not need that
> >>-D line. use that line if you put the jar in your own location
> >>somewhere, which is best anyway because it probably slows the loading fo
> >>the jvm a bit.
> >>
> >>you have a \lib\ext folder probably in c:/jdk/jre/lib/ext and another in
> >>c:/program files/java/jre/lib/ext
> >>
> >>make sure the java.exe you are running corresponds to the ext folder you
> >>put the swt in.
> >>
> >>
> >>
> >>>Thank you both, especially Marcelo, for answering me. I'm on my way!!!!
> >>>
> >>>Sincerely, Fayth
> >>>
> >>>"Fayth" <fayth@ut-mapdepot.com> wrote in message
> >>>news:c3vi02$sfj$1@eclipse.org...
> >>>
> >>>
> >>>>I'm sorry Marcelo, I'm not getting any results. I've told Eclipse to
> >
> > pack
> >
> >>>>everything it can, I've installed swt.jar and the dll's in the
\java\lib
> >>>>\java\bin folders, I've tried a million variations of the
> >
> > java -classpath
> >
> >>>>and java -Djava.library.path= command line options. I still get the
same
> >>>>error as before.
> >>>>
> >>>>Is there some documentation on how to do this? I can't believe this
> >>>>documentation is not more easily accessible, I don't mean that in a
bad
> >>>>way - I'm just frustrated :P.
> >>>>
> >>>>Sincerely, Fayth
> >>>>
> >>>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
> >>>>news:c3v5p6$de4$1@eclipse.org...
> >>>>
> >>>>
> >>>>>Your application needs the swt library.
> >>>>>
> >>>>>I believe you can pack it with your app, or put it into your
classpath.
> >>>>>
> >>>>>m.
> >>>>>
> >>>>>
> >>>>>
> >>>>>Fayth wrote:
> >>>>>
> >>>>>
> >>>>>>Marcelo... thank you very much for your response. I receive errors
> >>>
> >>>when
> >>>
> >>>
> >>>>I
> >>>>
> >>>>
> >>>>>>try to run this...
> >>>>>>
> >>>>>>Exception in thread "main" java.lang.NoClassDefFoundError:
> >>>>>>org/eclipse/swt/widgets/Composite
> >>>>>> at java.lang.ClassLoader.defineClass0(Native Method)
> >>>>>> at java.lang.ClassLoader.defineClass(Unknown Source)
> >>>>>> at java.security.SecureClassLoader.defineClass(Unknown
Source)
> >>>>>> at java.net.URLClassLoader.defineClass(Unknown Source)
> >>>>>> at java.net.URLClassLoader.access$100(Unknown Source)
> >>>>>> at java.net.URLClassLoader$1.run(Unknown Source)
> >>>>>> at java.security.AccessController.doPrivileged(Native Method)
> >>>>>> at java.net.URLClassLoader.findClass(Unknown Source)
> >>>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
> >>>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> >>>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
> >>>>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> >>>>>>
> >>>>>>I exported the jar like you said, made sure I generated the Manifest
> >>>>
> >>>>file
> >>>>
> >>>>
> >>>>>>and selected the Main-Class entry-point. Do I need to export swt.jar
> >>>>
> >>>>too? Is
> >>>>
> >>>>
> >>>>>>this a library issue or classpath issue?
> >>>>>>
> >>>>>>Sincerely,
> >>>>>> Fayth
> >>>>>>
> >>>>>>"marcelo correia" <mcorreia@linkz.com.br> wrote in message
> >>>>>>news:c3uv2b$4ar$1@eclipse.org...
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>You can create a jar package for your aplication.
> >>>>>>>
> >>>>>>>Once you get the package, the command line is:
> >>>>>>>
> >>>>>>>java -jar yourPackage.jar
> >>>>>>>
> >>>>>>>remember that you need a Manifest referencing your Main-Class.
> >>>>>>>
> >>>>>>>m.
> >>>>>>>
> >>>>>>>
> >>>>>>>Eclipse News wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>I must be totally and completely blind...
> >>>>>>>>
> >>>>>>>>I am just learning java and swt. I am able to successfully compile
> >>>
> >>>and
> >>>
> >>>
> >>>>>>run
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>>my programs from within the Eclipse environment. Now I would like
to
> >>>>>>
> >>>>>>send
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>>some of my programs to a friend to show him what I am doing. For
the
> >>>>>>
> >>>>>>life of
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>>me I cannot find one bit of documentation on what I need to
include
> >>>>
> >>>>with
> >>>>
> >>>>
> >>>>>>the
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>>.java file nor am I familiar with the exact command to use to run
> >
> > it.
> >
> >>>>>>I've
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>>now peeled my eyelids off for the last 4 hours trying to find
> >>>>>>
> >>>>>>documentation.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>>Could somebody please assist me? I'm so lost and frustrated at
this
> >>>>>>
> >>>>>>point...
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>>Thank you in advance... fayth
> >>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>
> >>
> >>--
> >>Respectfully,
> >>
> >>
> >>CL Gilbert
> >>
> >>"Verily, verily, I say unto you, He that entereth not by the door() into
> >>the sheepfold{}, but climbeth up some other *way, the same is a thief
> >>and a robber." John 10:1
> >>
> >>GnuPG Key Fingerprint:
> >>82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
> >>
> >>For a free Java interface to Freechess.org see
> >>http://www.rigidsoftware.com/Chess/chess.html
> >
> >
> >
|
|
|
Goto Forum:
Current Time: Wed Jun 04 10:36:39 EDT 2025
Powered by FUDForum. Page generated in 0.10019 seconds
|