|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi@all!
hmm... ok short version :-) have to make some changes on an existing CMS hand made system called JAOS from a company that does not exist any more... the typical NONO situation hehe... basically Linux Tomcat with mysql have used the jad to decompile the ModuleGenericForum.class, and tried to compile it back with simple javac ModuleGenericForum.java and.... macosxserver:/JAOS/JAOS/basepackage/modules root# javac ModuleGenericForum.java ModuleGenericForum.java:1830: illegal start of expression (new String("ModuleGenericForum")).name = <returnValue>; ^ 1 error macosxserver:/JAOS/JAOS/basepackage/modules root# Any ideas what that could be? Java version issue? Something else? Thanx ![]() |
|
#2
|
||||
|
||||
|
What does the full line of code look like? And perhaps any surrounding related code.
Did you change your linux prompt to read "macosxserver:"? :P |
|
#3
|
|||
|
|||
|
A bit of the code
public int getBaseParmint(ModuleEnv moduleenv, String s, int i)
{ String s1 = moduleenv.getBaseUrl().getParm(s); if(s1 == null || s1.equals("")) { moduleenv.getBaseUrl().setParm(s, "" + i); return i; } else { return (new Integer(s1)).intValue(); } } public ModuleGenericForum() { users = new Hashtable(); (new String("ModuleGenericForum")).name = <returnValue>; needArg("tmpl"); } public Hashtable users; } |
|
#4
|
|||
|
|||
|
Yepp, it's clean decompilation from JAD, and unfortunately i am not quite sure what that <returnvalue> should be.
actually i need to change just a few lines (coloring the output according to the e-mail address differently, which i intended to do approx in the middle of the script by implementing an simple conditional statement and applying the color (style) but first of all i wanted to check if the class can be decompiled and recompiled without a change... unfortunately i'm not that experienced with java |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Tiny Help needed - guess it's only syntax |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|