473,395 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error While Compiling Class

hey guys i had a java class file that i no longer have the source file for.
i reversed it back to the source using DJ JAVA Decompiler as i had to edit some of the source. How ever when i try to compile the source into a new class i get some errors. I would greatly appreciate it if anyone could help me solve this delema.

I tried to compile using NetBeans IDE, DJ JAVA Decompiler and javac.exe. All failed to compile. They all give the same error.

I have included a couple of screen shots to make the situation a bit more clearer to those of you that are trying to help me.

Thanks in advance.









Jun 3 '08 #1
13 2058
JosAH
11,448 Expert 8TB
First remove all the lines such as:

Expand|Select|Wrap|Line Numbers
  1. exception;
  2.  
and remove the label that isn't even there according to the decompiler. That is
quite goofy (and incorrect) decompiled code you're having there. I wouldn't trust
it one single bit.

kind regards,

Jos
Jun 3 '08 #2
i done what you said and now i have loads more red lines.
Jun 3 '08 #3
r035198x
13,262 8TB
i done what you said and now i have loads more red lines.
That code came from a decompiler? What a mess.
Why did you say you had to use the decompiler again?
Where did you get the java file that you've now lost from?
Jun 3 '08 #4
JosAH
11,448 Expert 8TB
i done what you said and now i have loads more red lines.
Show us a bit of relevant code and the error messages it caused. I can't help
you with just the information you supplied. Those 'exception' lines by themself
are just plain wrong.

kind regards,

Jos
Jun 3 '08 #5
That code came from a decompiler? What a mess.
Why did you say you had to use the decompiler again?
Where did you get the java file that you've now lost from?

I used to tool called JAD to reverse the Client.class file back to Client.java source file. All the code is there. Its just the exceptions are a mess.
Jun 3 '08 #6
BigDaddyLH
1,216 Expert 1GB
I used to tool called JAD to reverse the Client.class file back to Client.java source file. All the code is there. Its just the exceptions are a mess.
Yuck. That sounds like a job-and-a-half.
Jun 3 '08 #7
would any one be willing to add me on msn?
i can send the source entire source file.
its just i don't want to post it on here as it
is private.

goblert {at} hotmail.com

regards goblert
Jun 3 '08 #8
r035198x
13,262 8TB
would any one be willing to add me on msn?
i can send the source entire source file.
its just i don't want to post it on here as it
is private.

goblert {at} hotmail.com

regards goblert
No need for that.
Just post the first 4 error messages you get.
You still haven't answered my questions though. I want to make sure we are not doing anything illegal first.
Jun 3 '08 #9
i had the Source.java but my harddrive broke and i lost everything.
but i still had the Client.jar and Client.class on my server.
Then i reversed it back to Source.java.....

The Errors Are:

init:
deps-clean:
Deleting directory C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\build
clean:
init:
deps-jar:
Created dir: C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\build\ classes
Compiling 2 source files to C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\build\ classes
C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\src\Cl ient.java:55: not a statement
exception;
C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\src\Cl ient.java:78: not a statement
exception3;
C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\src\Cl ient.java:138: not a statement
exception;
C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\src\Cl ient.java:161: not a statement
exception3;
C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\src\ja vaapplication1\Main.java:55: not a statement
exception;
C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\src\ja vaapplication1\Main.java:78: not a statement
exception3;
C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\src\ja vaapplication1\Main.java:138: not a statement
exception;
C:\Documents and Settings\admin\My Documents\NetBeansProjects\JavaApplication1\src\ja vaapplication1\Main.java:161: not a statement
exception3;
8 errors
BUILD FAILED (total time: 1 second)
Jun 3 '08 #10
BigDaddyLH
1,216 Expert 1GB
Do you know Java? Is this someone else's code?
Jun 3 '08 #11
no but i am very good at batch.
Jun 3 '08 #12
r035198x
13,262 8TB
no but i am very good at batch.
Why not just get the 'Source.java' again from where you got it in the first place?
Jun 3 '08 #13
JosAH
11,448 Expert 8TB
@goblert: please don't PM me for your problem: you post your problem here and
we're very willing to help you solve your problem in this forum. From what I can
see given your screendumps the decompiled code doesn't make much sense
and in order to solve your problem we do need to see more of your source code,
whether it is all yours or not.

kind regards,

Jos
Jun 3 '08 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: kalpana.sinduria | last post by:
Hi all, how to remove the following complle error. When I compiling the code I get the following errors: Compiling... CDrtEachDefFeat.cpp d:\ include\common\cdrtintegfeat.h(39) : error...
6
by: c++newbie | last post by:
Hi all, I try to compile the following classes: main.cpp: #include <algorithm> #include <iostream> #include <fstream> #include <iterator>
7
by: kk | last post by:
Hi Guys, i am posting a cpp program contains runtime error, memory not allocated to char *x in class B. while accessing showx function it doesn't print values. if anybody knows send a reply plz....
1
by: Karine Pinault | last post by:
I am having trouble trying to compile existing code with the /clr flag. The following error occurs and I can't figure it out how to fix this problem. I have the following declaration:...
0
by: Herman Jones | last post by:
I'm getting the following error when I build a Class Library project: Embedding manifest... Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'. It happens with...
12
by: mast2as | last post by:
Hi everyone... I have a TExceptionHandler class that is uses in the code to thow exceptions. Whenever an exception is thrown the TExceptionHander constructor takes an error code (int) as an...
3
by: Gary Wessle | last post by:
Hi I tried so long, so many ways to find out why this code is not compiling, I appreciate any help with it, thank you ****************************************************************...
2
by: stevenruiz | last post by:
Hi Everyone, The Strings.h has the function Get_Line which is defined and the error is shown below: Strings.h: void get_line( istream & );
1
by: Anonymous | last post by:
My code has suddenly stopped compiling after some refactoring I carried out last week. I am using VC8 on W2K professional I get the following cryptic error: Error 77 fatal error C1001: An...
1
by: BSand0764 | last post by:
I'm getting an error that I can't seem to resolve. When I compile the Functor related logic in a test program, the files compile and execute properly (see Listing #1). However, when I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.