- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Java swing on HPUX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2004 02:53 AM
04-30-2004 02:53 AM
Java swing on HPUX
Can anyone tell me the HPUX classpath to compile a java program ?
for example :-
java -classpath.:/home/me/lnfdir/newlnf.jar HelloWorldSwing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2004 06:43 AM - last edited on 09-16-2024 02:20 AM by support_s
04-30-2004 06:43 AM - last edited on 09-16-2024 02:20 AM by support_s
Re: Java swing on HPUX
You can download the SDK from http://www.hp.com/go/java, if you don't already have it. Then you just need the java bin directory in your path.
% PATH=$PATH:/opt/java1.4/bin
% javac HelloWorldSwing.java
% java HelloWorldSwing
- Tags:
- memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 08:56 PM
05-03-2004 08:56 PM
Re: Java swing on HPUX
When I do this I get the following :-
$ PATH=$PATH:/opt/java1.3/bin
$ javac HelloWorldSwing.java
$ java HelloWorldSwing
Exception in thread "main" java.lang.NoSuchMethodError: main
Is this a problem with java1.3 ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 10:46 PM
05-03-2004 10:46 PM
Re: Java swing on HPUX
public static void main(String[] args){
}
If you make a typo you will get same message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 10:47 PM
05-03-2004 10:47 PM
Re: Java swing on HPUX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 10:58 PM
05-03-2004 10:58 PM
Re: Java swing on HPUX
I have seen many java programs without the main function and when I put this in I get the following :-
HelloWorldSwing.java:3: 'class' or 'interface' expected
public static void main(String[] args) {
^
1 error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 10:59 PM
05-03-2004 10:59 PM
Re: Java swing on HPUX
import javax.swing.*;
public class HelloWorldSwing {
/**
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
*/
private static void createAndShowGUI() {
//Make sure we have nice window decorations.
// JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
}
}
~
"HelloWorldSwing.java" 24 lines, 621 characters
$ /opt/java1.3/bin/javac HelloWorldSwing.java
HelloWorldSwing.java:3: 'class' or 'interface' expected
public static void main(String[] args) {
^
1 error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2004 03:09 AM
05-04-2004 03:09 AM
Re: Java swing on HPUX
I have managed to now compile this but have an invalid DISPLAY variable to run the program.
Can anyone explain how to define the DISPLAY variable ?
Jeff