Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Noob question re: opening .jar files(question about opening .jar files)
Noob question re: opening .jar files [message #1714244] Wed, 11 November 2015 03:33 Go to next message
Fred Wilhelm is currently offline Fred WilhelmFriend
Messages: 2
Registered: November 2015
Junior Member
Hey Guys & Gals,

I am a total noob and have next to no programming experience and I learn from reading. This brings me to the following question in regards to how to open a .jar file/program.

So I found a piece of software that is a .jar file and when I click it to run on my Windows 8.1 64bit system the program works and is fine. Now the program does not do what I want it to as it is made for some other usb hardware that i dont have. So I want to learn the code buy reading it and then attempt to make a program that will work with my usb hardware.

So I know the program that is the .jar file can be opened with winzip and extracted which I have done. But my question is can eclipse software open the .jar file so it shows all code or is there a way to do that?

Or do I have to look at each file in the uncompressed .jar file?
I see there are many folders and inside them are 100's of files .class and a few other types of files.

I do not want to edit or change the program .jar I only want to read the code so I can see how things are done from start to finish. I am taking free course on java at courseacademy.com but it is more of a hands on writing but as I said I learn better from reading each step of projects.

Hope this makes sense.
Thanks in advance
Fred
Re: Noob question re: opening .jar files [message #1714250 is a reply to message #1714244] Wed, 11 November 2015 06:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Fred,

If you add the jar the classpath of some Java project, you should be
able to explore/use it, but without source code I'm not sure how you're
managing. If you also have the source, you can add it as a source
attachment for the code jar so you can explore the source within
Eclipse, e.g., use the debugger to step into the code when you start to
use it.


On 11/11/2015 4:40 AM, Fred Wilhelm wrote:
> Hey Guys & Gals,
>
> I am a total noob and have next to no programming experience and I
> learn from reading. This brings me to the following question in
> regards to how to open a .jar file/program.
>
> So I found a piece of software that is a .jar file and when I click it
> to run on my Windows 8.1 64bit system the program works and is fine.
> Now the program does not do what I want it to as it is made for some
> other usb hardware that i dont have. So I want to learn the code buy
> reading it and then attempt to make a program that will work with my
> usb hardware.
>
> So I know the program that is the .jar file can be opened with winzip
> and extracted which I have done. But my question is can eclipse
> software open the .jar file so it shows all code or is there a way to
> do that?
>
> Or do I have to look at each file in the uncompressed .jar file?
> I see there are many folders and inside them are 100's of files .class
> and a few other types of files.
>
> I do not want to edit or change the program .jar I only want to read
> the code so I can see how things are done from start to finish. I am
> taking free course on java at courseacademy.com but it is more of a
> hands on writing but as I said I learn better from reading each step
> of projects.
> Hope this makes sense.
> Thanks in advance
> Fred


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Noob question re: opening .jar files [message #1714252 is a reply to message #1714250] Wed, 11 November 2015 06:42 Go to previous message
Fred Wilhelm is currently offline Fred WilhelmFriend
Messages: 2
Registered: November 2015
Junior Member
Hey,

Thanks for the fast reply and info to my post I appreciated it.

I guess I will try to find open/free source code on making a java program so I can control multiple usb devices at same time.

I purchased some usb relays but the supplied program sucks and the good software which is .jar does not work with that brand of relay.
So I had hoped to see source code to see the more complicated code it uses to control many usb devices at one time and then write a basic program that would work for my needs.

Anyways I will continue my codeacademy free course to help with my knowledge.
Thanks again for the help.
Fred


Previous Topic:Can't see lib folder within project
Next Topic:Installing Eclipse environment for C++ and PHP
Goto Forum:
  


Current Time: Thu Apr 18 03:21:35 GMT 2024

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

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

Back to the top