Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 28-11-2008, 05:05 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2007
Posts: 10
Default How to change class files in jar


I have a jar file(with all classes), i can decompile it to java file and change according to my requirement , but how can i compile it and include it in my jar.
Please tell me a way to do so.
Unbounded Bond is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 19-11-2009, 07:41 PM   #2 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default Re: How to change class files in jar

use the javax compile it to .jar.

alternative use java eclipse IDE for automation...
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
arpanmukherjee1 is offline  
Old 21-11-2009, 05:30 PM   #3 (permalink)
Right Off the Assembly Line
 
Harinder's Avatar
 
Join Date: Nov 2004
Location: Punjab
Posts: 8
Default Re: How to change class files in jar

i have a java mobile app as a .jar file i decompiled it, now i wnt to chnge its code and recompile it,,,can u help me out plz.....!!!!!!!!
__________________
Harinder
Harinder is offline  
Old 08-12-2009, 08:53 PM   #4 (permalink)
Back in black
 
layzee's Avatar
 
Join Date: May 2008
Location: Kolkata
Posts: 152
Default Re: How to change class files in jar

There is unfortunately no perfect decompiler
__________________
Intel Core 2 Quad Q8400
ASUS P5Q
Corsair TWIN2X4096-8500C5DF
Corsair CMPSU-450VX
Zotac GTX550Ti
Corsair H80
CMStorm Scout
layzee is offline  
Old 30-12-2009, 08:22 PM   #5 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2009
Location: Bangalore
Posts: 6
Default Re: How to change class files in jar

@Unbounded Bond
Compile it normally as you would do with other java classes. You will get a .class file. Open the jar file with Winzip or 7Zip and replace the previous class file with the new one.

@Harinder
You can also follow the same process as above but normally J2ME apps (if thats what you mean by java mobile apps) are signed using a security certificate. So if you change the class files in the signed jar then it will not be valid and may not run on your mobile.

Let me know if you have any more doubts.
rajiv.bandi is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Class 10 gprs Vs class 32 gprs karamvirk Mobiles and Tablets 8 28-09-2008 08:47 PM
Moto E8 - A class of it's own! Hitboxx Mobiles and Tablets 34 16-07-2008 09:17 PM
Change location of files received via BT Cool G5 Mobiles and Tablets 9 17-02-2007 12:59 PM
Where do i get Educational cds for class 11 and 12? KnightRider QnA (read only) 5 17-08-2005 09:20 AM
.:: What is a Domain Class ? ::. tuXian QnA (read only) 7 06-03-2005 12:00 AM

 
Latest Threads
- by gforz
- by soumya
- by Sujeet
- by icebags
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:01 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2