Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 2nd, 2005, 06:13 AM
Flexx Flexx is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 3 Flexx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 33 sec
Reputation Power: 0
Question Tiny Help needed - guess it's only syntax

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

Reply With Quote
  #2  
Old September 2nd, 2005, 07:39 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
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

Reply With Quote
  #3  
Old September 2nd, 2005, 07:42 AM
Flexx Flexx is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 3 Flexx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 33 sec
Reputation Power: 0
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;


}

Reply With Quote
  #4  
Old September 2nd, 2005, 09:23 AM
Flexx Flexx is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 3 Flexx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 33 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Tiny Help needed - guess it's only syntax


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT