Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to create a package to run outside of Eclipse
How to create a package to run outside of Eclipse [message #289316] Wed, 03 August 2005 17:30 Go to next message
Eclipse UserFriend
Originally posted by: m_cayer.hotmail.com

Hello,

I created a test application in Eclipse Java IDE and ran it. Now, I want to
run it outside of Eclipse. What are the steps that I need to go through to
do this?

-Melissa Cayer
Re: How to create a package to run outside of Eclipse [message #289646 is a reply to message #289316] Tue, 09 August 2005 15:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Go to Eclipse's Help, look under

Java Development User Guide->Creating Jar files.

And then just run it as a java application.

Melissa wrote:
> Hello,
>
> I created a test application in Eclipse Java IDE and ran it. Now, I want to
> run it outside of Eclipse. What are the steps that I need to go through to
> do this?
>
> -Melissa Cayer
>
>

--
Thanks,
Rich Kulp
Re: How to create a package to run outside of Eclipse [message #289795 is a reply to message #289646] Wed, 10 August 2005 19:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m_cayer.hotmail.com

Hello,
Thanks for the info. I created the jar file and clicked on it the file
explorer and got: Could not find main class. Program will exit.

I did select the java class with the Main in it. It runs OK in the IDE. Now,
if I could get it to run outside of the IDE that would be great.
-Melissa

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:ddagff$usn$2@news.eclipse.org...
> Go to Eclipse's Help, look under
>
> Java Development User Guide->Creating Jar files.
>
> And then just run it as a java application.
>
> Melissa wrote:
>> Hello,
>>
>> I created a test application in Eclipse Java IDE and ran it. Now, I want
>> to run it outside of Eclipse. What are the steps that I need to go
>> through to do this?
>>
>> -Melissa Cayer
>
> --
> Thanks,
> Rich Kulp
Re: How to create a package to run outside of Eclipse [message #289799 is a reply to message #289795] Wed, 10 August 2005 19:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m_cayer.hotmail.com

In Jbuilder 2005 IDE, when I run an application, I get the command line in
the messages window at the bottom of the IDE. I can then copy and paste that
command line to the command prompt window of Windows XP and run the process
outside of the IDE.
-Melissa

"Melissa" <m_cayer@hotmail.com> wrote in message
news:dddk7t$fgj$1@news.eclipse.org...
> Hello,
> Thanks for the info. I created the jar file and clicked on it the file
> explorer and got: Could not find main class. Program will exit.
>
> I did select the java class with the Main in it. It runs OK in the IDE.
> Now, if I could get it to run outside of the IDE that would be great.
> -Melissa
>
> "Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
> news:ddagff$usn$2@news.eclipse.org...
>> Go to Eclipse's Help, look under
>>
>> Java Development User Guide->Creating Jar files.
>>
>> And then just run it as a java application.
>>
>> Melissa wrote:
>>> Hello,
>>>
>>> I created a test application in Eclipse Java IDE and ran it. Now, I want
>>> to run it outside of Eclipse. What are the steps that I need to go
>>> through to do this?
>>>
>>> -Melissa Cayer
>>
>> --
>> Thanks,
>> Rich Kulp
>
>
Re: How to create a package to run outside of Eclipse [message #289801 is a reply to message #289799] Wed, 10 August 2005 19:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

You need a manifest in the jar to indicate the main class to run when
you click on the jar.

When you create the jar file, keep clicking on the "Next" button until
you get to the Manifest page. At the bottom will be where you can browse
for and select the main class for this jar.

--
Thanks,
Rich Kulp
Re: How to create a package to run outside of Eclipse [message #289804 is a reply to message #289801] Wed, 10 August 2005 20:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m_cayer.hotmail.com

OK, I did that before and I tried it again, several times. I tried to delete
and start over but I got: Resource is out of sync with the file system:
Search/search.jar when I try to Export, create Jar.
-Melissa

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:dddm5f$hd6$1@news.eclipse.org...
> You need a manifest in the jar to indicate the main class to run when you
> click on the jar.
>
> When you create the jar file, keep clicking on the "Next" button until you
> get to the Manifest page. At the bottom will be where you can browse for
> and select the main class for this jar.
>
> --
> Thanks,
> Rich Kulp
Re: How to create a package to run outside of Eclipse [message #289806 is a reply to message #289804] Wed, 10 August 2005 20:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The jar should not be within your workspace. When you export it should
be somewhere else on your file system. Resource out of sync means that
some file in your workspace was changed by something else other than
Eclipse. When that happens, just do a File->Refresh on the project.

I don't have my system set up to run a jar from the file explorer, but
if I do the command line:

java -jar t.jar

it will work for me.

Melissa wrote:
> OK, I did that before and I tried it again, several times. I tried to delete
> and start over but I got: Resource is out of sync with the file system:
> Search/search.jar when I try to Export, create Jar.
> -Melissa
>
> "Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
> news:dddm5f$hd6$1@news.eclipse.org...
>
>>You need a manifest in the jar to indicate the main class to run when you
>>click on the jar.
>>
>>When you create the jar file, keep clicking on the "Next" button until you
>>get to the Manifest page. At the bottom will be where you can browse for
>>and select the main class for this jar.
>>
>>--
>>Thanks,
>>Rich Kulp
>
>
>

--
Thanks,
Rich Kulp
Re: How to create a package to run outside of Eclipse [message #289810 is a reply to message #289799] Thu, 11 August 2005 03:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Melissa" <m_cayer@hotmail.com> wrote in message
news:dddltp$hbp$1@news.eclipse.org...
> In Jbuilder 2005 IDE, when I run an application, I get the command line in
> the messages window at the bottom of the IDE. I can then copy and paste
> that command line to the command prompt window of Windows XP and run the
> process outside of the IDE.
> -Melissa
>
Right-click on the process in the Debug view. Select properties. You will
see the command line information.
---
Sunil
Re: How to create a package to run outside of Eclipse [message #289989 is a reply to message #289810] Tue, 16 August 2005 16:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m_cayer.hotmail.com

When I do that I get:
FATAL ERROR in native method: No transports initialized
"Sunil Kamath" <sunil_kamath@nohotspammail.com> wrote in message
news:ddehdg$9rl$1@news.eclipse.org...
>
> "Melissa" <m_cayer@hotmail.com> wrote in message
> news:dddltp$hbp$1@news.eclipse.org...
>> In Jbuilder 2005 IDE, when I run an application, I get the command line
>> in the messages window at the bottom of the IDE. I can then copy and
>> paste that command line to the command prompt window of Windows XP and
>> run the process outside of the IDE.
>> -Melissa
>>
> Right-click on the process in the Debug view. Select properties. You will
> see the command line information.
> ---
> Sunil
>
Re: How to create a package to run outside of Eclipse [message #289992 is a reply to message #289989] Tue, 16 August 2005 16:23 Go to previous message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Melissa" <m_cayer@hotmail.com> wrote in message
news:ddt2s4$mds$1@news.eclipse.org...
> When I do that I get:
> FATAL ERROR in native method: No transports initialized
> "Sunil Kamath" <sunil_kamath@nohotspammail.com> wrote in message
> news:ddehdg$9rl$1@news.eclipse.org...
>>
>> "Melissa" <m_cayer@hotmail.com> wrote in message
>> news:dddltp$hbp$1@news.eclipse.org...
>>> In Jbuilder 2005 IDE, when I run an application, I get the command line
>>> in the messages window at the bottom of the IDE. I can then copy and
>>> paste that command line to the command prompt window of Windows XP and
>>> run the process outside of the IDE.
>>> -Melissa
>>>
>> Right-click on the process in the Debug view. Select properties. You will
>> see the command line information.
>> ---
>> Sunil
>>

If your application runs successfully from within Eclipse, you should not
get this error message.
Does your application run properly when you launch it or debug it?
---
Sunil
Previous Topic:OleFrame and Form problem ...
Next Topic:eclipse.platform is now mirrored at EclipseZone
Goto Forum:
  


Current Time: Thu Apr 25 15:47:00 GMT 2024

Powered by FUDForum. Page generated in 0.03782 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top