Solved

How do you edit a jar file?

Posted on 2006-06-26
5
214 Views
Last Modified: 2008-03-17
Hi,

I have obviously never programmed in Java.  I want to know if I have a .jar file that represents an applet, can I edit it and what program can I use to do that?

Thanks,
Bonnie
0
Comment
Question by:Bonnie_K
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 24

Expert Comment

by:sciuriware
ID: 16986938
A .jar is a container filled with .class files and optionally some resources.
It is not edited but created from those files.

Editing? *.java only.

;JOOP!
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 16986949
If there's an applet (class file) in your .jar,
where is the source?
You could extract the .class file from the .jar (jar command)
and reverse engineer it , but that's a hell of a job.

;JOOP!
0
 
LVL 24

Accepted Solution

by:
sciuriware earned 500 total points
ID: 16986967
So, a .jar is a 'way' to have a JAVA program to sit in a single file,
compared to binaries and .exe files.
But it can also contain all pictures, sounds and text files you need to run the program.


;JOOP!
0
 

Author Comment

by:Bonnie_K
ID: 16986997
Thanks sciuriware.  That helps. I'm looking for a chat server and found one that has an applet for the client.  I wanted to edit the user interface, but it looks like it is not something I can do.  
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 16987044
You may expect that the applet is to show up in the browser at the client's side.
In fact, the .jar is sent to the browser, unpacked and executed
in the context of the browser.
I suppose that will only give you same basic functions.
To get further, dig into portlets: a multi-window approach
with that applet just in a corner.

Success!

;JOOP!
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question