473,807 Members | 2,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make CLASSPATH behave like PATH on Windows?

Windows (XP and NT) allows one to specify environmental variable
(such as PATH and CLASSPATH) at both the SYSTEM-wide level
as well as at the per-USER level.

And the behavior has always been that the value of one's PATH list is
the concatenation of those two ENV specifications.

So, the $64 question is: Is there some way to coerce the resulting
CLASSPATH list to also be a concatenation of both the SYSTEM
and the USER's lists?

(Hopefully, some sort of registry hack can accomplish this!?)

The reason I ask is that today, after installing a Sun 'product' called
JMF (Java Media Framework), it BROKE my existing CLASSPATH
setup. The reason it BROKE it was that BEFORE the installation,
I had my CLASSPATH defined (only) at the SYSTEM level, and it
got inherited into my USER level. But, the (stupid?) JMF kit decided
to 'add' some stuff of its own to the USER classpath, and since one
didn't exist at all, it created one and put its stuff in it.

BUT the unwanted side-effect of that (brilliant?) idea was that now
the only resulting CLASSPATH that the users have is this new one that
the kit created and all the existing entries on the SYSTEM-wide defn
of CLASSPATH now get tossed into the bit-bucket.

Any SUN Java architects out there who can rule on this? Is this a
bug or a feature of the JMF kit? (A registry hack or something similar
for a workaround would be nice.)

Cheers...

Dave
Jul 17 '05 #1
2 4136
Hi,

I don't think you can do that..... You'll have to use some tricky
methods for that.....

Quiks
--------------
BTW: For those who have to do with monitoring, check the site:
http://www.metamindsolutions.com. It's a great multiplatform
monitoring solution and seems to have been adopted by large accounts
"David Cook" <(who wants to know?)> wrote in message news:<FM******* *************@c omcast.com>...
Windows (XP and NT) allows one to specify environmental variable
(such as PATH and CLASSPATH) at both the SYSTEM-wide level
as well as at the per-USER level.

And the behavior has always been that the value of one's PATH list is
the concatenation of those two ENV specifications.

So, the $64 question is: Is there some way to coerce the resulting
CLASSPATH list to also be a concatenation of both the SYSTEM
and the USER's lists?

(Hopefully, some sort of registry hack can accomplish this!?)

The reason I ask is that today, after installing a Sun 'product' called
JMF (Java Media Framework), it BROKE my existing CLASSPATH
setup. The reason it BROKE it was that BEFORE the installation,
I had my CLASSPATH defined (only) at the SYSTEM level, and it
got inherited into my USER level. But, the (stupid?) JMF kit decided
to 'add' some stuff of its own to the USER classpath, and since one
didn't exist at all, it created one and put its stuff in it.

BUT the unwanted side-effect of that (brilliant?) idea was that now
the only resulting CLASSPATH that the users have is this new one that
the kit created and all the existing entries on the SYSTEM-wide defn
of CLASSPATH now get tossed into the bit-bucket.

Any SUN Java architects out there who can rule on this? Is this a
bug or a feature of the JMF kit? (A registry hack or something similar
for a workaround would be nice.)

Cheers...

Dave

Jul 17 '05 #2
Interesting.... ...

--
All the Best,
Kelly

Microsoft-MVP Windows® XP
2004 Windows MVP "Winny" Award

Troubleshooting Windows XP
http://www.kellys-korner-xp.com

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.ht m

"Quiks" <gr*********@me tamindsolutions .com> wrote in message
news:fc******** *************** **@posting.goog le.com...
Hi,

I don't think you can do that..... You'll have to use some tricky
methods for that.....

Quiks
--------------
BTW: For those who have to do with monitoring, check the site:
http://www.metamindsolutions.com. It's a great multiplatform
monitoring solution and seems to have been adopted by large accounts
"David Cook" <(who wants to know?)> wrote in message
news:<FM******* *************@c omcast.com>...
Windows (XP and NT) allows one to specify environmental variable
(such as PATH and CLASSPATH) at both the SYSTEM-wide level
as well as at the per-USER level.

And the behavior has always been that the value of one's PATH list is
the concatenation of those two ENV specifications.

So, the $64 question is: Is there some way to coerce the resulting
CLASSPATH list to also be a concatenation of both the SYSTEM
and the USER's lists?

(Hopefully, some sort of registry hack can accomplish this!?)

The reason I ask is that today, after installing a Sun 'product' called
JMF (Java Media Framework), it BROKE my existing CLASSPATH
setup. The reason it BROKE it was that BEFORE the installation,
I had my CLASSPATH defined (only) at the SYSTEM level, and it
got inherited into my USER level. But, the (stupid?) JMF kit decided
to 'add' some stuff of its own to the USER classpath, and since one
didn't exist at all, it created one and put its stuff in it.

BUT the unwanted side-effect of that (brilliant?) idea was that now
the only resulting CLASSPATH that the users have is this new one that
the kit created and all the existing entries on the SYSTEM-wide defn
of CLASSPATH now get tossed into the bit-bucket.

Any SUN Java architects out there who can rule on this? Is this a
bug or a feature of the JMF kit? (A registry hack or something similar
for a workaround would be nice.)

Cheers...

Dave

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3214
by: Steven Mason | last post by:
Here's my problem. I've certain jar files I've included in my classpath that I need to work with. I've included these in my path variable so when I type path at the command line I get : PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program...
7
4179
by: Herman | last post by:
Hi everyone, I recently installed the Sun J2SE SDK on my machine, and I am having trouble running the java.exe interpreter for my Java compiled code. I remember that I had to set my environment CLASSPATH variable to whatever the current directory is, but I forgot the exact characters to denote this. Or that there was an extra call to the java interpreter (like -cp or -classpath) to indicate the current directory, but that escapes me as...
1
2663
by: Digital Puer | last post by:
I am writing Java user defined functions running in DB2 8 on Windows XP. For some reason the Windows system environment CLASSPATH is not being passed to my Java UDF (i.e. when I println the java.class.path property, I get a different CLASSPATH). Can anyone please help? How do I set the CLASSPATH for a Java UDF being executed?
5
4311
by: malcolm | last post by:
I'm trying to make a combo box custom control (Windows Forms .NET 1.1 c#) that can behave like a label programatically at run time. This is actually a strong feature request by our customers. I really don't want to have to make a UserControl that has both a label and ComboBox in it. I would rather have my control derive from a ComboBox for databinding (and other) reasons. I can get close, I've tried setting cbo.DropDownStyle =...
9
25876
by: KevinRobinson | last post by:
Hi, Can anyone please tell me how to add or change a Java classpath in SUSE Linux 9.3. I have set up a Tomcat server but my Java Classes will not run although they do on a windows box. Kevin
6
1843
by: BMD | last post by:
Hi all, I have a problem configuring my system at home, what do I need in the path, and what do I need in the classpath to get java to compile and run. I have Windows 2000 and the latest download from sun.java. It works (java) on the XP system (at work) but not at home running 2000, I'm sure something is not configured correctly. Any help (Please) Thanks, BMD. PS, Soon I will post about how to have a button load a new window with...
0
3598
by: MIRRA | last post by:
Hi I have a UNIX script which creates a report. In that script I have to define the java classpath. Also I need to check if the java classpath specified exists or not. Below is the command i use XY=./abc/cde:./bgh/nkl # check if path defined in $jXY exists IFS=: for i in $XY do if
3
1574
by: gaya3 | last post by:
Hi, I'm having a java class in jar file.. from java class i'm connecting to oracle.. For that i need to set the classpath for driver.. can anyone please say me how to set the class path in jar file.. Thanks in Advance. -Thansk & Regards, Hamsa
9
2454
by: korean_dave | last post by:
From command Prompt, i type in a script, "tryme.py". This, instead, brings up PythonWin editor and Interactive Window. Path variable is "C:\Python24". (I need Python 2.4 installed, not 2.5) How do I make it so that the script runs?
0
10628
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.