Thread: Java Applets/AWT Deprecated?

Results 1 to 10 of 10
  1. #1 Java Applets/AWT Deprecated? 
    Registered Member
    Join Date
    Aug 2010
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hey guys,

    Trying to get back into java programming and want to setup a server for myself and housemates to play over LAN. I have setup the Source, Client and Cache.

    However the client is producing 1174 errors due Java Applets and AWT being deprecated.

    I'm using the "Clean 508 Server/Client RS2HD Release" posted by "MATRIXFTW". (Not going to link it in case linking other websites is against the rules)

    Anyone know how I could resolve this issue?

    Thanks in advance!
    Reply With Quote  
     

  2. #2  
    Member Java Applets/AWT Deprecated? Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    deprecation is a warning not an error

    Attached imageAttached image
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,253
    Thanks given
    1,145
    Thanks received
    909
    Rep Power
    2081
    1174 errors are they all similar looking or what because that's a lot and most of them are probably just the compiler throwing a hissy fit about using packages incorrectly or something
    Reply With Quote  
     

  4. #4  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,179
    Thanks given
    260
    Thanks received
    1,012
    Rep Power
    2003
    Build with Java 8
    Attached imageAttached image
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,253
    Thanks given
    1,145
    Thanks received
    909
    Rep Power
    2081
    Quote Originally Posted by Greg View Post
    Build with Java 8
    Was going to suggest this but don't think it will make a difference because as Luke points out deprecation won't throw an error, just warn the user. Plus the deprecated features are probably just placeholders now for the new methods anyway. I checked and awt isn't removed from any version past 8 so shouldn't be an issue.
    Reply With Quote  
     

  6. #6  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,179
    Thanks given
    260
    Thanks received
    1,012
    Rep Power
    2003
    Quote Originally Posted by Fire Cape View Post
    Was going to suggest this but don't think it will make a difference because as Luke points out deprecation won't throw an error, just warn the user. Plus the deprecated features are probably just placeholders now for the new methods anyway. I checked and awt isn't removed from any version past 8 so shouldn't be an issue.
    Building with a jdk over 8 will give build errors due to missing Sun/netscape imports depending on client, jdk and configs; using jdk 8 is still the simpliest solution to all of the above
    Attached imageAttached image
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2010
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Cheers for the replies guys, I massively appreciate it!

    I'll try using jdk 8 and update you on the outcome.

    As for the errors, here's a couple of images of them if it'll help. Also showing the imports.
    Attached image
    Attached image
    Last edited by omgzzz; 09-02-2020 at 06:09 PM. Reason: Wrong image links
    Reply With Quote  
     

  8. #8  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,179
    Thanks given
    260
    Thanks received
    1,012
    Rep Power
    2003
    Quote Originally Posted by omgzzz View Post
    Cheers for the replies guys, I massively appreciate it!

    I'll try using jdk 8 and update you on the outcome.

    As for the errors, here's a couple of images of them if it'll help. Also showing the imports.
    Attached image
    Attached image
    That actually looks like there's no jdk/jre on the build path at all, also import java.applet.*); isn't a valid import you've probably entered ")" by mistake
    Attached imageAttached image
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Aug 2010
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Okay so I was pretty baked when I set it all up, I ended up just deleting it all and restarting the project, but made sure I used JDK8 this time.
    I'm down to 10 errors now, which is amazing.

    Thanks guys!!
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,253
    Thanks given
    1,145
    Thanks received
    909
    Rep Power
    2081
    Great feel free to post the rest of the errors if you can't figure it out.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Embed a Java applet in a C/++ frame
    By HcoJustin in forum Application Development
    Replies: 7
    Last Post: 01-05-2012, 06:25 PM
  2. Java applet screwin with my menu!
    By Drake in forum Application Development
    Replies: 2
    Last Post: 12-05-2011, 01:49 AM
  3. Java applet help
    By suplm in forum Application Development
    Replies: 0
    Last Post: 11-13-2010, 02:33 PM
  4. Java Applet Security Policy
    By Vastiko in forum Help
    Replies: 3
    Last Post: 07-12-2010, 02:10 PM
  5. Replies: 0
    Last Post: 06-30-2009, 01:40 PM
Tags for this Thread

View Tag Cloud

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