× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I changed it around a little bit. See below. I'm on V5R2 JVM 1.4.1

I got this output:


java TestSimpleDate date is 12112003-113956 $




import java.text.SimpleDateFormat;

public class TestSimpleDate {

public static void main(String[] args) {

SimpleDateFormat dateFormat = new SimpleDateFormat("ddMMyyyy-HHmmss");

java.sql.Timestamp st = new java.sql.Timestamp(System.currentTimeMillis());

System.out.println("date is " + dateFormat.format(st));

}

}



Thanx, PLA

Ashish Kulkarni wrote:

Hi
I am pasting a java code below can anyone using java
version 1.4.1 on AS400 V5R1 or V5R2 test it and let me
know it is works,
Because i get following error
java.lang.UnsatisfiedLinkError: java/util/Currency


But i run it using jdk1.3 it works fine,
How can i report this error to IBM or find a PTF for
it??

Ashish
// code starts here
import java.text.*;
public class TestSimpleDate
{
public TestSimpleDate()
{
SimpleDateFormat dateFormat = new SimpleDateFormat("ddMMyyyy-HHmmss");
java.sql.Timestamp st = new
java.sql.Timestamp(System.currentTimeMillis());
System.out.println ("date is " +
dateFormat.format(st));


}



public static void main(String args[])
{
new TestSimpleDate();


}       
        
}

//end of code


__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.







As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.