Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6671533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:23:58+00:00 2026-05-26T03:23:58+00:00

My Sco OpenServer Release 5.0.6 have a java version which is : # java

  • 0

My Sco OpenServer Release 5.0.6 have a java version which is :

# java -version

java version “1.3.1_22”

Java(Tm) Runtime Environment, Standard Edition (build SCO-UNIX-J2SE-1.3.1_22:*
FCS*:20080305)
Classic VM (build SCO-UNIX-J2SE-1.3.1_22:FCS:20080305, green threads, sunwjit)

My java application have developed in Windows with java version 6 update 25.

i understand , i should change my code to work with java 1.3 like following trouble :

  1. Generic is not supported like ArrayList<String>
  2. String.format is not supported for (String,double)
  3. For each loop is not supported

What code should come to replace the unsupported java version code below?

ArrayList<String> messages;

for (String message : messages)

String.format("%1$td/%1$tm/%1$tY %1$tI:%1$tM:%1$tS %1$Tp", new Date())
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:23:59+00:00Added an answer on May 26, 2026 at 3:23 am

    Is there no possibility to upgrade the version of Java on your server? 1.3 is pretty ancient and I think you’ll end up with trouble. But to answer your specific questions:

       /* ArrayList<String> messages; */
       ArrayList messages;
    
       /* for (String message : messages) */
       for (Iterator it = messages.iterator(); ; it.hasNext()) {
           String message = it.next();
           ...
       }
    
       /* String.format("%1$td/%1$tm/%1$tY %1$tI:%1$tM:%1$tS %1$Tp", new Date()) */
       new SimpleDateFormat("your-desired-format").format(new Date());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Java -version (Sco Openserver 5) Java(TM) 2 Runtime Environment, Standard Edition (build SCO-UNIX-J2SE-1.3.1_22:* FCS*:20080305)
I am writing a Java web service for legacy SCO machines (which only have
I have a project which compiles in multiple platforms... Windows, Unix, Linux, SCO, name
I'm working on automation tools for an ERP program running on SCO Unix. See
I have a array of my object Country which has the attributes code and
I have the following php code: <html> <body> <?php $_GET = Array('filename' => 'scores/score.sco&scoresize=10&action=VIEW&viewtype=HTML');
I am using a texture atlas which I have a made by stitching 2
I have 2 classes which get saved in the google datastore. class product which
I am trying to talk to a SCO Unix box through the Serial Port
I have a system with the following setup: I use: Windows CE 6 R3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.