- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Java compilation question
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
09-23-2004 01:39 AM
09-23-2004 01:39 AM
Environment VMS 7.3-1 (plain), JDK 1.1.8. PATCH AND UPGRADE ARE NO OPTIONS - have to stick to this environment.
I think I have a problem setting the paths correctly. I tried to describe it in the attachment - it contains a description of the structure, working environment and compilation results.
If someone could explain why the third compilation failed?
Willem
OpenVMS Developer & System Manager
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 04:45 AM
09-23-2004 04:45 AM
Re: Java compilation question
I am not shure, because I can not test it, but I think that yours classpath must be:
/sys$common/java/lib/JDK118_CLASSES.ZIP:/dka0/users/me/pps020:.
and not
/sys$common/java/lib/JDK118_CLASSES.ZIP:/dka0/users/me/pps020/nl/lvl1/lvl2/lvl3/framework:.
Java will add nl/lvl1/lvl2/lvl3/framework from jours package name. The first two compiles OK because there are no references to other classes in the package.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 04:54 AM
09-23-2004 04:54 AM
SolutionI forgot to say that it will be better if you do a set def dka0:[users.me.pps020] and then
javac nl/lvl1/lvl2/lvl3/framework/JOURS_CLASS.java
Probably this way you dont need a special classpath. The logical CLASSPATH will be sufficient.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 06:40 AM
09-23-2004 06:40 AM
Re: Java compilation question
you really should be teaching them there (in Meppel, I seem to recognise?) that is is VERY un-VMSsy, because VERY un-transparant and VERY un-tranportable, to be using DKA0: and the likes, as part of any file-id. I know I will be getting this PPS stuff over (we are doing some things with it right now!), and we do not even HAVE DKxnnn!!!
Try teaching them some CONCEALED DEVICE principles!! I now THEY are hiring YOU, so THEY decide, but you DO have some professional integrity that forces you to educate?
(then again, knowing you, and them, you probably tried and had to quit with that or quit with the assignment I guess?)
Oh well, no hard feelings, but I just COULD NOT resist....
DO pay us a visit one time shortly!
Willem, als ik je eerder niet zie, tot DutchWorld.
cheers,
have one one me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 08:33 AM
09-23-2004 08:33 AM
Re: Java compilation question
Don't worry. I know, it is just a test for my own sake to see how I get the application compiled and running on VMS; on Windows, I have crahes of this Java compiler (Illegal instruction on W2K, Access violation on XP), even worse: was unable to start Netbeans after 1.1.6 was installed on MS Terminal server...What a product (and I don't mean Windows here;-)....
Since I do not have Netbeans on the VMS machine at the customers premises, this _might_ be the quick solution. Nevertheless, if needed I can keep it on the VMS box.
Bojan, I'll check your suggestions first thing in the morning.
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 10:28 AM
09-23-2004 10:28 AM
Re: Java compilation question
<
To execute Netbeans (which is written in Java itself) you need a current version of Java. What you can do is setup an alternate JDK from within Netbeans to build a specific project using an old Java version. This is described e.g. in the Netbeans book from O'Reilly (I am sure there are other places, I just happen to know this particular reference).
CLASSPATH should look something like
/disk/dir/archive:/disk/dir/archive:.
The trailing . is the current directory and the archive part (foo.zip or foo.jar) can be optional. I think you do not need a trailing slash.
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2004 07:02 PM
09-26-2004 07:02 PM
Re: Java compilation question
I know, but I will use the 1.1.6 compiler for compiling my application (accoring the help on cross compilation). Compiled using 1.4 it cannot run using a 1.1.8 JRE.
Actually, it works on Windows: Netbeans, started using 1.4, starts the right compiler on windows (1.1.6) but THAT crashes (due to access violation (XP) or illegal instruction (Win2K)). My own VMS machine cannot handle over 256 Mb of memory momentary (due to some some failing hardware) - so Netbeans is not very userful now on that machine ;-(((
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2004 07:42 PM
09-26-2004 07:42 PM
Re: Java compilation question
One problem left, though.
If no .class file exists it will be craeted but the name and extension are in uppercase. I guess that may be a problem when executing in another environment than VMS (since java is (as a Unix-based environment) stricty case-sensitive).
Once a .class exists where name and extention are lowercase, it's ok. That would require either a rename of the file, and I would like to prevent that. Is there a way to force lowercase for filename and extension?
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2004 08:54 PM
09-26-2004 08:54 PM
Re: Java compilation question
Mixed case file names are supported only on ODS-5 disks. But I am not shure that yours version of Java (which is quite old) supports ODS-5 file names (probably yes because of C runtime).
If you have an ODS-5 disk try to move yours Java sources to it and try to compile. Maybe a SET PROCESS/PARSE_STYLE=EXTENDED before compailing will help.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2004 09:26 PM
09-26-2004 09:26 PM
Re: Java compilation question
$ DEFINE DECC$EFS_CASE_PRESERVE ENABLE
Because this is a logical name for DECC it might also work on yours version. The description is there:
http://h18012.www1.hp.com/java/documentation/1.4.1/ovms/docs/user_guide.html#ods5
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 09:47 PM
09-27-2004 09:47 PM
Re: Java compilation question
I successfully built the application just using CLI intreface (no IDE), not completely in a way I would like it to be done but "java has it's limitations" (to use an understatement).
OpenVMS Developer & System Manager