Java

איליה.

New member
Java

אני צריך עזרה בעריכת קובץ class של Java. ב-Applet יש טקסט מסוים וכל מה שאני רוצה זה ליישר אותו לימין. הורדתי את Java Decompiler ואת JDK, אבל אני לא מצליח לעשות עם זה שום דבר. האם תוכלו להדריך אותי איך לבצע את זה? עם הקוד אני כבר אסתדר, אבל אני רוצה להבין איך אני מגיע מקובץ ה-class לקובץ שניתן לערוך, בתור מה אני שומר אותו, איפה אני עורך אותו, ומה אני עושה איתו כדי להפוך חזרה ל-class? תודה רבה מראש, איליה.
 

mz70

New member
Java classes

well first of all you have to work with a file with the extention: SomeClass.java you will have to compile this class with the command javac SomeClass.java this command will create a file with the extention: SomeClass.class and in order to execute the file you will have to . write the command java SomeClass If you want to work with a tool to use Java you can download Jbuilder from: www.borland.com
 

איליה.

New member
כן, אבל איך אני הופך את ה-class

שיש לי עכשיו ל-java כדי שאוכל לשנות אותו? וגם: איפה אני מוצא שם את התכונה שאומרת שהטקסט הוא left-to-right (כי את התכונה הזאת אני רוצה לשנות)?
 

mz70

New member
Java

after you compiled the class to a .class file and you want to make changes you will make the changes on the .java file that you compiled and compile it again. about the left to right I am sorry but I don´t understand the question, can you attach the file?
 

איליה.

New member
gladly

מצטער לעבור על חוקי תפוז, אני לא יכול להעלות קובץ עם סיומת class, אז שיניתי את הסיומת שלו. זה אמור להיות class. תודה
וזהו שאין לי את קובץ ה-java, יש לי רק את ה-class! זאת הבעיה.
 

mz70

New member
I cannot open the file

did you write the file or did you get it from somwere? In order to make a java file from the class file you will have to decompile the class. you can download a decompiler from: http://members.fortunecity.com/neshkov/dj.html http://www.brouhaha.com/~eric/computers/mocha.html
 

איליה.

New member
כבר בהודעה הראשונה כתבתי!

שהורדתי decompiler וניסיתי לעשות איתו משהו. זה נקרא DJ Java Decompiler 2.9 הבעיה היא שהוא יוצר קובץ txt, לא java. שני הקישורים שנתת - הם יוצרים קובץ java?
 

mz70

New member
When using the decompiler

all you have to do is open the .class file in the decompiler enviroment, and you will see the sourse java file. if you can´t do this please try to save the class file as txt file and attach it .
 

mz70

New member
The file That you attached is

a java file !!!!!!!!
Save this file as the class file name with the extention .java: ClassName.java Then open this file in any java editor.
 
למעלה