Compatibility problems

Thread Solved

Join Date: Sep 2005
Posts: 17
Reputation: ROGENATOR is an unknown quantity at this point 
Solved Threads: 0
ROGENATOR's Avatar
ROGENATOR ROGENATOR is offline Offline
Newbie Poster

Compatibility problems

 
0
  #1
Feb 3rd, 2006
Greetings:
I`m starting in Java and i`m having problems with compatibility between versions, in school they have an older version(I believe its 1.4.0 but i`m not completely sure) than the one i have at home(1.5.0_04), so almost every time i try to open a applet/application at school i get errors, so i have to change some parts of code, i was wondering, is there a way to convert from newer versions to older version?, or any thoughts on how to ensure compatibility?.
for example:
At home i can use:
  1. frame.add(X)
At school i must use:
  1. frame.getContentPane().add(X)
At school i can`t use:
  1. JFrame.setDefaultLookAndFeelDecorated(true);
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Compatibility problems

 
0
  #2
Feb 3rd, 2006
add the compiler flags "-source 1.4 -target 1.4" (without the quotes) when compiling and your 1.5 compiler will behave like it was a 1.4 compiler and spit out classfiles for 1.4 runtimes.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 17
Reputation: ROGENATOR is an unknown quantity at this point 
Solved Threads: 0
ROGENATOR's Avatar
ROGENATOR ROGENATOR is offline Offline
Newbie Poster

Re: Compatibility problems

 
0
  #3
Feb 4th, 2006
Greetings:
Thanks jwenting, it worked like a charm
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC