Environment Variables length in W2K
Hello All,
I am using Windows 2000 , sp2. while developing java applications If I try to put many jars in the classpath, I get an error message "The input line is too long."
Is there any way to increase the capacity of the windows shell to allow more jars to be added to the classpath.
Any help would be highly appriciated.
regards,
Abhishek.
This may not fix your original problem, but it might help Scott and others with Win2K environment variable problems. M$ knowledge base article Q158141 explains how to allow more size for an environment variable. See http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q158141&.
Basically it says edit the System environment variable ComSpec to add a parameter /e:nnnn, so if you change
ComSpec C:\WINNT\system32\cmd.exe
to
ComSpec C:\WINNT\system32\cmd.exe /e:4096
it will let you have environment variables up to 4096 characters. It's good up to 32768.
Similar Messages
-
when i am going to Install 11gR2 then thsi error shows how to solve it plz give me guidance
This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
Expected Value: 1023
Actual Value: 0HELLO iSHAN SHAH
JUST EXPLAIN US YOUR PROBLEM IN DEPTH.
TELL US YOUR HARDWARE AND SOFTWARE CONFIGURATION.
ALSO TELL US IN WHICH STEP OF INSTALLATION , THIS ERROR RAISED.
THANKS
HARSH SHAH -
Build error on using environment variable for CS5 on Mac
I have created a sample project using dollyx on Mac for CS5 . I have used an environment variable and defined it in Source tree of XCode preferences.
I am using snow leapard and my XCode version is 3.2.2 .
I have defined variable as IDSDK7 for /idsdk7 (which is my SDK directory). I am creating project outside SDK . While creating project with DollyX , I am giving SDK's path as $(IDSDK7) which is absolute path and not relative with respect to the project .
I am getting many build errors -----
/idsdk7/external/afl/includes/AErrors.h:31:0 /idsdk7/external/afl/includes/AErrors.h:31:19: error: Files.h: No such file or directory
/idsdk7/source/public/includes/K2Debugging.h:53:0 /idsdk7/source/public/includes/K2Debugging.h:53:3: error: #error DEBUG and NDEBUG are out of sync!
/idsdk7/source/public/includes/UnicodeSavvyString.h:35:0 /idsdk7/source/public/includes/UnicodeSavvyString.h:35:26: error: adobe/move.hpp: No such file or directory
/idsdk7/source/public/includes/PMString.h:34:0 /idsdk7/source/public/includes/PMString.h:34:30: error: adobe/typeinfo.hpp: No such file or directory
/idsdk7/source/public/includes/UnicodeSavvyString.h:211:0 /idsdk7/source/public/includes/UnicodeSavvyString.h:211: error: expected `)' before '<' token
/idsdk7/source/public/includes/PMString.h:120:0 /idsdk7/source/public/includes/PMString.h:120: error: expected `)' before '<' token
/idsdk7/source/public/includes/PMString.h:1196:0 /idsdk7/source/public/includes/PMString.h:1196: error: expected constructor, destructor, or type conversion before '(' token
/idsdk7/source/public/includes/WideString.h:322:0 /idsdk7/source/public/includes/WideString.h:322: error: expected `)' before '<' token
/idsdk7/source/public/includes/WideString.h:751:0 /idsdk7/source/public/includes/WideString.h:751: error: expected constructor, destructor, or type conversion before '(' token
/idsdk7/source/public/includes/IDFile.h:385:0 /idsdk7/source/public/includes/IDFile.h:385: error: expected constructor, destructor, or type conversion before '(' token
/idsdk7/source/public/interfaces/architecture/IDataBase.h:488:0 /idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::mainFile'
/idsdk7/source/public/interfaces/architecture/IDataBase.h:488:0 /idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::miniSaveFile'
/idsdk7/source/public/interfaces/architecture/IDataBase.h:779:0 /idsdk7/source/public/interfaces/architecture/IDataBase.h:779: error: expected constructor, destructor, or type conversion before '(' token
/idsdk7/source/public/includes/InterfacePtr.h:506:0 /idsdk7/source/public/includes/InterfacePtr.h:506: error: expected constructor, destructor, or type conversion before '(' token
/idsdk7/source/public/includes/K2Vector.h:241:0 /idsdk7/source/public/includes/K2Vector.h:241: error: expected constructor, destructor, or type conversion before '(' token
/idsdk7/source/public/includes/MSystemUtils.h:382:0 /idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)
/idsdk7/source/public/includes/MSystemUtils.h:382:0 /idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)
/idsdk7/source/public/includes/MSystemUtils.h:618:0 /idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)
/idsdk7/source/public/includes/MSystemUtils.h:618:0 /idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)
/CS5Test/Prj/../Source/CTActionComponent.cpp:0:0 /CS5Test/Prj/../Source/CTActionComponent.cpp: At global scope:
/CS5Test/Prj/../Source/CTActionComponent.cpp:43:0 /CS5Test/Prj/../Source/CTActionComponent.cpp:43: warning: 'CTActionComponent' declared with greater visibility than the type of its field 'CTActionComponent::<anonymous>'
/CS5Test/Prj/../Source/CTActionComponent.cpp:43:0 /CS5Test/Prj/../Source/CTActionComponent.cpp:43: warning: 'CTActionComponent' declared with greater visibility than its base 'CActionComponent'
CompileC build/CS5Test.build/Default/Debug.build/Objects-normal/i386/CTNoStrip.o ../Source/CTNoStrip.cpp normal i386 c++ com.apple.compilers.gcc.4_2
cd /CS5Test/Prj
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Werror -DMACINTOSH -DMACOSX_SDKVERSION= -fvisibility-inlines-hidden -gdwarf-2 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/CS5Test.hmap -F/CS5Test/Prj/../debug/sdk -F/idsdk7/build/mac/debug/packagefolder/contents/macos -F/idsdk7/build/mac/debug/packagefolder/contents/Frameworks -I/CS5Test/Prj/../debug/sdk/include -I/idsdk7/external/afl/includes -I/idsdk7/source/precomp/msvc -I/idsdk7/source/public/interfaces/xmedia -I/idsdk7/source/public/interfaces/preflight -I/idsdk7/source/public/interfaces/ui -I/idsdk7/source/public/interfaces/tables -I/idsdk7/source/public/interfaces/text -I/idsdk7/source/public/interfaces/graphics -I/idsdk7/source/public/libs/widgetbin/includes -I/idsdk7/source/public/interfaces/workgroup -I/idsdk7/source/public/interfaces/interactive -I/idsdk7/source/public/interfaces/interactive/ui -I/idsdk7/source/public/interfaces/colormgmt -I/idsdk7/source/public/interfaces/utils -I/idsdk7/source/public/interfaces/incopy -I/idsdk7/source/public/interfaces/layout -I/idsdk7/source/public/interfaces/architecture -I/idsdk7/source/public/interfaces/cjk -I/idsdk7/source/precomp/common -I/idsdk7/source/public/includes -I/idsdk7/source/public/libs/publiclib/plugins -I/idsdk7/source/public/libs/publiclib/files -I/idsdk7/source/public/libs/publiclib/objectmodel -I/idsdk7/external/asl/boost_libraries -I/idsdk7/source/sdksamples/common -I/idsdk7/external/afl/includes -I../Source -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources/i386 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources -include /idsdk7/source/precomp/gcc/PluginPrefix.pch -c /CS5Test/Prj/../Source/CTNoStrip.cpp -o /CS5Test/Prj/build/CS5Test.build/Default/Debug.build/Objects-normal/i386/CTNoStrip.o
In file included from /idsdk7/external/afl/includes/AFile.h:30,
from /idsdk7/source/public/includes/IDFile.h:34,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/external/afl/includes/AErrors.h:31:19: error: Files.h: No such file or directory
In file included from /idsdk7/source/public/includes/PMString.h:28,
from /idsdk7/source/public/includes/IDFile.h:36,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/K2Debugging.h:53:3: error: #error DEBUG and NDEBUG are out of sync!
In file included from /idsdk7/source/public/includes/PMString.h:31,
from /idsdk7/source/public/includes/IDFile.h:36,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/UnicodeSavvyString.h:35:26: error: adobe/move.hpp: No such file or directory
In file included from /idsdk7/source/public/includes/IDFile.h:36,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/PMString.h:34:30: error: adobe/typeinfo.hpp: No such file or directory
In file included from /idsdk7/source/public/includes/PMString.h:31,
from /idsdk7/source/public/includes/IDFile.h:36,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/UnicodeSavvyString.h:211: error: expected `)' before '<' token
In file included from /idsdk7/source/public/includes/IDFile.h:36,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/PMString.h:120: error: expected `)' before '<' token
/idsdk7/source/public/includes/PMString.h:1196: error: expected constructor, destructor, or type conversion before '(' token
In file included from /idsdk7/source/public/includes/IDFile.h:37,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/WideString.h:322: error: expected `)' before '<' token
/idsdk7/source/public/includes/WideString.h:751: error: expected constructor, destructor, or type conversion before '(' token
In file included from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/IDFile.h:385: error: expected constructor, destructor, or type conversion before '(' token
cc1plus: warnings being treated as errors
In file included from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::mainFile'
/idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::miniSaveFile'
/idsdk7/source/public/interfaces/architecture/IDataBase.h:779: error: expected constructor, destructor, or type conversion before '(' token
In file included from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/InterfacePtr.h:506: error: expected constructor, destructor, or type conversion before '(' token
In file included from /idsdk7/source/precomp/common/ShukHeaders.cp:51,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/K2Vector.h:241: error: expected constructor, destructor, or type conversion before '(' token
In file included from /idsdk7/source/public/includes/SystemUtils.h:33,
from /idsdk7/source/public/includes/PMPoint.h:29,
from /idsdk7/source/public/includes/PMMatrix.h:33,
from /idsdk7/source/precomp/common/ShukHeaders.cp:53,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/MSystemUtils.h: In function 'void InvertSysRgn(OpaqueGrafPtr*, const __HIShape*)':
/idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)
/idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)
/idsdk7/source/public/includes/MSystemUtils.h: In function 'void SystemBeep()':
/idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)
/idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)
CompileC build/CS5Test.build/Default/Debug.build/Objects-normal/i386/CTID.o ../Source/CTID.cpp normal i386 c++ com.apple.compilers.gcc.4_2
cd /CS5Test/Prj
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Werror -DMACINTOSH -DMACOSX_SDKVERSION= -fvisibility-inlines-hidden -gdwarf-2 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/CS5Test.hmap -F/CS5Test/Prj/../debug/sdk -F/idsdk7/build/mac/debug/packagefolder/contents/macos -F/idsdk7/build/mac/debug/packagefolder/contents/Frameworks -I/CS5Test/Prj/../debug/sdk/include -I/idsdk7/external/afl/includes -I/idsdk7/source/precomp/msvc -I/idsdk7/source/public/interfaces/xmedia -I/idsdk7/source/public/interfaces/preflight -I/idsdk7/source/public/interfaces/ui -I/idsdk7/source/public/interfaces/tables -I/idsdk7/source/public/interfaces/text -I/idsdk7/source/public/interfaces/graphics -I/idsdk7/source/public/libs/widgetbin/includes -I/idsdk7/source/public/interfaces/workgroup -I/idsdk7/source/public/interfaces/interactive -I/idsdk7/source/public/interfaces/interactive/ui -I/idsdk7/source/public/interfaces/colormgmt -I/idsdk7/source/public/interfaces/utils -I/idsdk7/source/public/interfaces/incopy -I/idsdk7/source/public/interfaces/layout -I/idsdk7/source/public/interfaces/architecture -I/idsdk7/source/public/interfaces/cjk -I/idsdk7/source/precomp/common -I/idsdk7/source/public/includes -I/idsdk7/source/public/libs/publiclib/plugins -I/idsdk7/source/public/libs/publiclib/files -I/idsdk7/source/public/libs/publiclib/objectmodel -I/idsdk7/external/asl/boost_libraries -I/idsdk7/source/sdksamples/common -I/idsdk7/external/afl/includes -I../Source -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources/i386 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources -include /idsdk7/source/precomp/gcc/PluginPrefix.pch -c /CS5Test/Prj/../Source/CTID.cpp -o /CS5Test/Prj/build/CS5Test.build/Default/Debug.build/Objects-normal/i386/CTID.o
In file included from /idsdk7/external/afl/includes/AFile.h:30,
from /idsdk7/source/public/includes/IDFile.h:34,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/external/afl/includes/AErrors.h:31:19: error: Files.h: No such file or directory
In file included from /idsdk7/source/public/includes/PMString.h:28,
from /idsdk7/source/public/includes/IDFile.h:36,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/K2Debugging.h:53:3: error: #error DEBUG and NDEBUG are out of sync!
In file included from /idsdk7/source/public/includes/PMString.h:31,
from /idsdk7/source/public/includes/IDFile.h:36,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/UnicodeSavvyString.h:35:26: error: adobe/move.hpp: No such file or directory
In file included from /idsdk7/source/public/includes/IDFile.h:36,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/PMString.h:34:30: error: adobe/typeinfo.hpp: No such file or directory
In file included from /idsdk7/source/public/includes/PMString.h:31,
from /idsdk7/source/public/includes/IDFile.h:36,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/UnicodeSavvyString.h:211: error: expected `)' before '<' token
In file included from /idsdk7/source/public/includes/IDFile.h:36,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/PMString.h:120: error: expected `)' before '<' token
/idsdk7/source/public/includes/PMString.h:1196: error: expected constructor, destructor, or type conversion before '(' token
In file included from /idsdk7/source/public/includes/IDFile.h:37,
from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/WideString.h:322: error: expected `)' before '<' token
/idsdk7/source/public/includes/WideString.h:751: error: expected constructor, destructor, or type conversion before '(' token
In file included from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,
from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/IDFile.h:385: error: expected constructor, destructor, or type conversion before '(' token
cc1plus: warnings being treated as errors
In file included from /idsdk7/source/public/includes/InterfacePtr.h:76,
from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::mainFile'
/idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::miniSaveFile'
/idsdk7/source/public/interfaces/architecture/IDataBase.h:779: error: expected constructor, destructor, or type conversion before '(' token
In file included from /idsdk7/source/precomp/common/ShukHeaders.cp:48,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/InterfacePtr.h:506: error: expected constructor, destructor, or type conversion before '(' token
In file included from /idsdk7/source/precomp/common/ShukHeaders.cp:51,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/K2Vector.h:241: error: expected constructor, destructor, or type conversion before '(' token
In file included from /idsdk7/source/public/includes/SystemUtils.h:33,
from /idsdk7/source/public/includes/PMPoint.h:29,
from /idsdk7/source/public/includes/PMMatrix.h:33,
from /idsdk7/source/precomp/common/ShukHeaders.cp:53,
from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,
from <command-line>:0:
/idsdk7/source/public/includes/MSystemUtils.h: In function 'void InvertSysRgn(OpaqueGrafPtr*, const __HIShape*)':
/idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)
/idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)
/idsdk7/source/public/includes/MSystemUtils.h: In function 'void SystemBeep()':
/idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)
/idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)
CompileC build/CS5Test.build/Default/Debug.build/Objects-normal/i386/SDKPlugInEntrypoint.o /idsdk7/source/sdksamples/common/SDKPlugInEntrypoint.cpp normal i386 c++ com.apple.compilers.gcc.4_2
cd /CS5Test/Prj
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Werror -DMACINTOSH -DMACOSX_SDKVERSION= -fvisibility-inlines-hidden -gdwarf-2 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/CS5Test.hmap -F/CS5Test/Prj/../debug/sdk -F/idsdk7/build/mac/debug/packagefolder/contents/macos -F/idsdk7/build/mac/debug/packagefolder/contents/Frameworks -I/CS5Test/Prj/../debug/sdk/include -I/idsdk7/external/afl/includes -I/idsdk7/source/precomp/msvc -I/idsdk7/source/public/interfaces/xmedia -I/idsdk7/source/public/interfaces/preflight -I/idsdk7/source/public/interfaces/ui -I/idsdk7/source/public/interfaces/tables -I/idsdk7/source/public/interfaces/text -I/idsdk7/source/public/interfaces/graphics -I/idsdk7/source/public/libs/widgetbin/includes -I/idsdk7/source/public/interfaces/workgroup -I/idsdk7/source/public/interfaces/interactive -I/idsdk7/source/public/interfaces/interactive/ui -I/idsdk7/source/public/interfaces/colormgmt -I/idsdk7/source/public/interfaces/utils -I/idsdk7/source/public/interfaces/incopy -I/idsdk7/source/public/interfaces/layout -I/idsdk7/source/public/interfaces/architecture -I/idsdk7/source/public/interfaces/cjk -I/idsdk7/source/precomp/common -I/idsdk7/source/public/includes -I/idsdk7/source/public/libs/publiclib/plugins -I/idsdk7/source/public/libs/publiclib/files -I/idsdk7/source/public/libs/publiclib/objectmodel -I/idsdk7/external/asl/boost_libraries -I/idsdk7/source/sdksamples/common -I/idsdk7/external/afl/includes -I../Source -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources/i386 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources -include /idsdk7/source/precomp/gcc/PluginPrefix.pch -c /CS5Test/Prj//idsdk7/source/sdksamples/common/SDKPlugInEntrypoint.cpp -o /CS5Test/Prj/build/CS5Test.build/Default/Debug.build/Objects-normal/i386/SDKPlugInEntrypo int.o
i686-apple-darwin10-gcc-4.2.1: /CS5Test/Prj//idsdk7/source/sdksamples/common/SDKPlugInEntrypoint.cpp: No such file or directory
i686-apple-darwin10-gcc-4.2.1: warning: '-x c++' after last input file has no effect
i686-apple-darwin10-gcc-4.2.1: no input files
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
Without using environment variable everything works fine . (i.e when I give SDK's dir path like ../../ i.e relative to my project)There is workaround : http://stackoverflow.com/questions/12629395/weblogic-using-environment-variable-double-quotes-in-arguments-in-server
Just posting here for reference. Let's see if we get a different answer from anyone else. -
The error is like : Variable length field exceeds maximum length
Hi All,
I am trying to load some signature ascii data from load file. so i wrote the code like below in my controal file to load that to database. For SIGN_IMAGE in oracle db it was mentioned as RAW(2000). The below is worked fine when i tried in window and oracle 8i environment.
SIG_TYPE POSITION(23:23) CHAR,
SIGN_IMAGE POSITION(24:1977) VARRAW(2000)
NULLIF SIGN_IMAGE=BLANKS,
SIGN_IMAGE1 POSITION(1978:3930) VARRAW(2000)
NULLIF SIGN_IMAGE1=BLANKS
But when i ported the same thing to solaris and oracle 10g environment. The below code is giving error when SQL Loder loading.
The error is like for column SIGN_IMAGE : Variable length field exceeds maximum length.
But here i am giving a lenght of 1954 only with including 2 bytes length of the string.
Could any one tell me what is exactly the problem? i am not able sort out the issue.
Thanks,
ShashiMaybe:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm#i1011032 -
Variable length field exceeds maximum length
Hi All,
I am trying to load some signature ascii data from load file. so i wrote the code like below in my controal file to load that to database. For SIGN_IMAGE in oracle db it was mentioned as RAW(2000). The below is worked fine when i tried in window and oracle 8i environment.
SIG_TYPE POSITION(23:23) CHAR,
SIGN_IMAGE POSITION(24:1977) VARRAW(2000)
NULLIF SIGN_IMAGE=BLANKS,
SIGN_IMAGE1 POSITION(1978:3930) VARRAW(2000)
NULLIF SIGN_IMAGE1=BLANKS
But when i ported the same thing to solaris and oracle 10g environment. The below code is giving error when SQL Loder loading.
The error is like : Variable length field exceeds maximum length.
But here i am giving a lenght of 1954 only with including 2 bytes length of the string.
Could any one tell me what is exactly the problem? i am not able sort out the issue.
Thanks,
ShashiHi,
I am getting the error in environment Oracle 10.2.0 and SunOS 5.10. This case was executed fine in Oracle 8.1 and windows xp professional. Please find the details below.
LOG file :
Column Name Position Len Term Encl Datatype
TRANS_NO 1:15 15 CHARACTER
TDR_ID 16:18 3 CHARACTER
DVCE_TYPE 19:20 2 CHARACTER
CAP_CD 21:22 2 CHARACTER
SIG_TYPE 23:23 1 CHARACTER
SIGN_IMAGE 24:1977 2002 VARRAW
NULL if SIGN_IMAGE = BLANKS
SIGN_IMAGE1 1978:3930 2002 VARRAW
NULL if SIGN_IMAGE1 = BLANKS
SIGN_IMAGE2 3931:5883 2002 VARRAW
NULL if SIGN_IMAGE2 = BLANKS
SIGN_IMAGE3 5884 2002 VARRAW
NULL if SIGN_IMAGE3 = BLANKS
value used for ROWS parameter changed from 64 to 31
Record 1: Rejected - Error on table SIGSCH.SIGNATURE, column SIGN_IMAGE.
Variable length field exceeds maximum length.
Record 2: Rejected - Error on table SIGSCH.SIGNATURE, column SIGN_IMAGE.
Variable length field exceeds maximum length.
Record 3: Rejected - Error on table SIGSCH.SIGNATURE, column SIGN_IMAGE.
Variable length field exceeds maximum length.
Record 4: Rejected - Error on table SIGSCH.SIGNATURE, column SIGN_IMAGE.
Variable length field exceeds maximum length.
Controal file :
LOAD DATA
INFILE 'sigc.sig'
BADFILE 'load_7.bad'
DISCARDFILE 'load_7.dis'
APPEND
INTO TABLE sigsch.signature
TRANS_NO POSITION(1:15) CHAR,
TDR_ID POSITION(16:18) INTEGER EXTERNAL,
DVCE_TYPE POSITION(19:20) CHAR,
CAP_CD POSITION(21:22) CHAR,
SIG_TYPE POSITION(23:23) CHAR,
SIGN_IMAGE POSITION(24:1977) VARRAW(2000)
NULLIF SIGN_IMAGE=BLANKS,
SIGN_IMAGE1 POSITION(1978:3930) VARRAW(2000)
NULLIF SIGN_IMAGE1=BLANKS,
SIGN_IMAGE2 POSITION(3931:5883) VARRAW(2000)
NULLIF SIGN_IMAGE2=BLANKS,
SIGN_IMAGE3 POSITION(5884) VARRAW(2000)
NULLIF SIGN_IMAGE3=BLANKS
DATA line
0001200000002480050600?ža4GW ' & ' & _" _! _" ^# ^# _" ^# _" ^# _! _" & ' & ' & !%_!5 & !% & !U & !% ' V X _R _! _Z _Q _" _"__1 _"_ ( _!__2_ (_ 0 & 'pa@NS _! _"_^3 _" ^# _! ^$ ^# _! ^$ _! _" _!paDC' ' P V _ P ^ & '_ ._ 0__*_ 0 ^# _" _! _" _! ^T X _Q! H PpaTI$_ (_ 0_ (_ 0__2_ (^_9 _"_^3 _" _! _R _Z P! H P! H & ^ W !% & & ' _! _" ^# _" _! _" _" _Q _" X P &pa]KA_ 0^ 8_ 0_ (__2_ 0_ ( X _! P P Z! H Q P Z R _!__2 _!^ 8__2_ (^ 8_ 6_ 0 ' Ppe"F; P ^ P & P ' & '_ 0_ 0__)_ 0 _"__) Z " ^S _Y! @!_Jpe3K/ _" _" _! _"__1 ^$ _! _" P _! ' ^ ' & & !% ' & & ' &_ ( _" X P P Y!J R!I!_J ^S R Y _"_ (__1^ 8_ 0^ 8_ 7^ 8_ ( & _" X PpeDF# & & _" _" _! _" ^# _" PpeDKW '_ 0 V P X R X P Q _"_ 0_ 0_ ( _" _! Z P Q Z!J Q R _! _" _"_ 0^ 8__1_ /_ 0_ 6_ ( & ' X V! H W! H! N! H! @ X P Z ! _" _! ^$ _! ^# _" ^# R ! ' & ' !$ !% !% !%_!5 !$ ' & W & & P X _" _R _! _Z _! _" _"__)_ 0__*_ 0 Ppi#J+ X_ (_ 0_ (^ @_ (__1__*__1 _R _Z _Q X P P! H X ' & V_ 7 &_ ( '_ 6 _" Ppi-KG_ 0_ 7__)_ 0_ /__1^ 8_ 0 R Z P Q Z Q Z _" _Q__2__) _"__2_ (^ @_ (_ 6 V ' ^ P P ' X V X P P X P! H P ^ P X W & '_ 6_ (__2_ (__1__2 _! _" _R _Q! H _Z P Ppi@H& _Q P X _" V X ' P_ 6_ (__2__)_ 0__2 _" _! _R _Q X P! H P _ & ' &_ . '_ 6 P XpiTN# &_ (^ 8__2^ 8_ 0__)__2_^3 _" _! ^# R " _! _R _!__2 _"_ 0_ (_ 6_ ._ 7_ 6_ / & & ' X P Q! H!J Ppi\KW _" _R X _Q _Z _Q _R _Zpm&O9_ . _"__2 _!_^3_^, ^#_^3 ^# ^# ^$ Qpm(JS 0_ ( _!_ 0 _"__) _" _" _! _Z P X P V _ &_ ._ 7_ 0 P Ppm1ID_ 0_ 0__* _!__2 _" Q " X _! P P X W X !% P & & W & _" _! _" _" _! ^# _" X V ' !] & V ' & _" _!__2 _" _! _" P & ' & V _ V _! @ ^! H!_B Xpa44V &_ 0____1____2 ^# ^# ^# R !!_J X P V _ !% & !% & '_ . &_ 7_ 6 Ppa<7Q_ 0_ ._ 0 _"__* _! _" ^# _" ]\ ^$ ^S ^# _Z _! W &paE3A _"_ 0 &_ 0_ ( _"_ 0__) _"_^3 _" ^S ^# _Z P!_I W !\ ' "S !%\!% !$ !%_!5 & '_ ( ^# _" ^# _! ^$ ^[ _! ^T ^# _YpaW7)_ 0_ ( _"__1 _" ^# _" ^# _! ^T X _Q! H P! H Xpe 7Q_ 0_ ( X _" _Q ^# _R ^# ^# ^\ ^# ^S _" _! _Z V !% !U !] !T !% !% !% &_ 0 _"__) ^$ _! _" ^# _" ^[ P _Y! @ X W ^ ' &_ ._ 7_ . '_ 6_ 0 & W P ^pe37/ ' _! _" _" _! ^# ^$ _! ^[ ^$ ^# _! ^$ _!pe-3A _" X _Q X! @ X P! H P ' X & V ' & ' !$ ' & _" _! ^$ _! ^# ^$ ^[ ^# ^# ^S _" _" V !% ^ W !\ W P ^ P X P _R _! _Z ^# _R ^# ^# _Z _! _RpeE/G X P X P W X P &_ 7_ (__1_ 0__*__1_^, _! ^# ^\ _Q _Z!_A!_J! H P! HpeU3A &_ 0_ 0__* _" _! _Z _Q _" ^S _" ^# _" _! _"__1 _"__2_ (_ 0pe]5D _" _! _" _" _! ^# ^\ ^# ^S _" ^# X & W & !% !%_"3_!-_ 6_!- &_ 7_ 0 & P V _ P X! @ X P X _Q ^$ _! _" _!__2_ ( _"_ 0_ (_ 0 Vpi&0> _! ^$ _Q _" _! ^$ _! _" & _ !$ ' !% !$ ' !U V ^ P! H P!_J X!_B Xpi65<_ ( _"_ 0 _! _"__2 _!__* _! ^$ ^# _Y _R _R X V ^ !U ' & &_ 7_ . '_ 0_ ( X VpiA1D_ 0^ 8 _"_ 0 _! ^$ _!_^+ ^$ ^[ ^S ^# ^[ _R _R_ 6 &_!5_!- !%_!5 !$ !% !U !% ^ W P X P _Y P _" _! _" ^#__2_ (__1_ (_ 0 ' &piF0> P X P! H P! H! H V __ . &_ 0_ (^ @_ (__2__*__1 _" _Q _Z _R! H!_I! H PpiT3! P &__2 _" _! _R _! _" _" ^# _! ' & ' !$ W & ' ^ V! H P! H Xpm$;! & _" _" _! ^# ^$ _! ^# _" _" ^#pm'3/ _"_ 0 _" _! _R _! _Z P _R! H! H P! N X V W & _Z _! ^$ ^S ^# ]] ^# ]% ]U_^3 _!__*^_:^_A^ 8^ 8^ ?^ 8^ @p -
Variable length field exceeds maximum length for VARRAW in SQLLOADER
Hi All,
I am trying to load some signature ascii data from load file. so i wrote the code like below in my controal file to load that to database. For SIGN_IMAGE in oracle db it was mentioned as RAW(2000). The below is worked fine when i tried in window and oracle 8i environment.
SIG_TYPE POSITION(23:23) CHAR,
SIGN_IMAGE POSITION(24:1977) VARRAW(2000)
NULLIF SIGN_IMAGE=BLANKS,
SIGN_IMAGE1 POSITION(1978:3930) VARRAW(2000)
NULLIF SIGN_IMAGE1=BLANKS
But when i ported the same thing to solaris and oracle 10g environment. The below code is giving error when SQL Loder loading.
The error is like : Variable length field exceeds maximum length.
But here i am giving a lenght of 1954 only with including 2 bytes length of the string.
Could any one tell me what is exactly the problem? i am not able sort out the issue.
Thanks,
ShashiPlease only post in a single forum. Thank you.
-
Variable length field exceeds maximum length for VARRAW
Hi All,
I am trying to load some signature ascii data from load file. so i wrote the code like below in my controal file to load that to database. For SIGN_IMAGE in oracle db it was mentioned as RAW(2000). The below is worked fine when i tried in window and oracle 8i environment.
SIG_TYPE POSITION(23:23) CHAR,
SIGN_IMAGE POSITION(24:1977) VARRAW(2000)
NULLIF SIGN_IMAGE=BLANKS,
SIGN_IMAGE1 POSITION(1978:3930) VARRAW(2000)
NULLIF SIGN_IMAGE1=BLANKS
But when i ported the same thing to solaris and oracle 10g environment. The below code is giving error when SQL Loder loading.
The error is like : Variable length field exceeds maximum length.
But here i am giving a lenght of 1954 only with including 2 bytes length of the string.
Could any one tell me what is exactly the problem? i am not able sort out the issue.
Thanks,
ShashiYou should probably move this question to the General Database Discussions. This forum is for Oracle Forms not SQL:*Loader.
-
Who can tell me the details about "JMSJVMOPTS" environment variable of JMSC API
I have a question about JMS C API.
When in windows service application, JMSContectCreate return JMS_JVM_ERROR error.
But in desktop app, it does well.
I think I may need set the JMSJVMOPTS environment variable.
But how to set JMSJVMOPTS ?
OK,
The JMSJVMOPTS are extra options passed to the "java" executable itself
along with
"-Djava.class.path=${CLASSPATH}"
Hence, the actual things you can set with this depend on which java compiler
you are using. If you are using the Sun JVM for instance, here are some of
the options you can set (from java -?)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
As far as what sort of things can cause a JMS_JVM_ERROR from
JmsContextCreate the answer is that there are many, many reasons this might
be happening. Please look for a file named ULOG.<mmddyy> (where mmddyy is
month/day/year - for example ULOG.081403) somewhere on your system (I am not
sure where this file would go being run from a W2K service). That "userlog"
file should contain more information about why the failure occurred.
Also, you can set JMSDEBUG=y in your environment which will print to stdout
(again, not sure where stdout goes in a system service) stack traces and
other debugging information into the ULOG file.
Hope this helps...
"Luke" <[email protected]> wrote in message
news:[email protected]...
>
> Hi,John Wells,
> thanks for your help.
> But what I really don't know is what value I can set for JMSJVMOPTS.
> There is not document about the detail of optional values for JMSJVMOPTS.
> And what reasons can result a JMS_JVM_ERROR in JmsContextCreate() ?
-
How to get system Environment variable?
How to get system Environment variable without using jni?
just like "JAVA_HOME" or "PATH"...
Any reply is help to me!! :-)Thx for your reply...
I get it!!!
Read environment variables from an application
Start the JVM with the "-D" switch to pass properties to the application and read them with the System.getProperty() method. SET myvar=Hello world
SET myothervar=nothing
java -Dmyvar="%myvar%" -Dmyothervar="%myothervar%" myClass
then in myClass String myvar = System.getProperty("myvar");
String myothervar = System.getProperty("myothervar");
This is useful when using a JAVA program as a CGI.
(DOS bat file acting as a CGI) java -DREQUEST_METHOD="%REQUEST_METHOD%"
-DQUERY_STRING="%QUERY_STRING%"
javaCGI
If you don't know in advance, the name of the variable to be passed to the JVM, then there is no 100% Java way to retrieve them.
NOTE: JDK1.5 provides a way to achieve this, see this HowTo.
One approach (not the easiest one), is to use a JNI call to fetch the variables, see this HowTo.
A more low-tech way, is to launch the appropriate call to the operating system and capture the output. The following snippet puts all environment variables in a Properties class and display the value the TEMP variable. import java.io.*;
import java.util.*;
public class ReadEnv {
public static Properties getEnvVars() throws Throwable {
Process p = null;
Properties envVars = new Properties();
Runtime r = Runtime.getRuntime();
String OS = System.getProperty("os.name").toLowerCase();
// System.out.println(OS);
if (OS.indexOf("windows 9") > -1) {
p = r.exec( "command.com /c set" );
else if ( (OS.indexOf("nt") > -1)
|| (OS.indexOf("windows 2000") > -1 )
|| (OS.indexOf("windows xp") > -1) ) {
// thanks to JuanFran for the xp fix!
p = r.exec( "cmd.exe /c set" );
else {
// our last hope, we assume Unix (thanks to H. Ware for the fix)
p = r.exec( "env" );
BufferedReader br = new BufferedReader
( new InputStreamReader( p.getInputStream() ) );
String line;
while( (line = br.readLine()) != null ) {
int idx = line.indexOf( '=' );
String key = line.substring( 0, idx );
String value = line.substring( idx+1 );
envVars.setProperty( key, value );
// System.out.println( key + " = " + value );
return envVars;
public static void main(String args[]) {
try {
Properties p = ReadEnv.getEnvVars();
System.out.println("the current value of TEMP is : " +
p.getProperty("TEMP"));
catch (Throwable e) {
e.printStackTrace();
Thanks to W.Rijnders for the W2K fix.
An update from Van Ly :
I found that, on Windows 2003 server, the property value for "os.name" is actually "windows 2003." So either that has to be added to the bunch of tests or just relax the comparison strings a bit: else if ( (OS.indexOf("nt") > -1)
|| (OS.indexOf("windows 2000") > -1 )
|| (OS.indexOf("windows 2003") > -1 ) // works but is quite specific to 2003
|| (OS.indexOf("windows xp") > -1) ) {
else if ( (OS.indexOf("nt") > -1)
|| (OS.indexOf("windows 20") > -1 ) // probably is better since no other OS would return "windows" anyway
|| (OS.indexOf("windows xp") > -1) ) {
I started with "windows 200" but thought "what the hell" and made it "windows 20" to lengthen its longivity. You could push it further and use "windows 2," I suppose. The only thing to watch out for is to not overlap with "windows 9."
On Windows, pre-JDK 1.2 JVM has trouble reading the Output stream directly from the SET command, it never returns. Here 2 ways to bypass this behaviour.
First, instead of calling directly the SET command, we use a BAT file, after the SET command we print a known string. Then, in Java, when we read this known string, we exit from loop. [env.bat]
@set
@echo **end
[java]
if (OS.indexOf("windows") > -1) {
p = r.exec( "env.bat" );
while( (line = br.readLine()) != null ) {
if (line.indexOf("**end")>-1) break;
int idx = line.indexOf( '=' );
String key = line.substring( 0, idx );
String value = line.substring( idx+1 );
hash.put( key, value );
System.out.println( key + " = " + value );
The other solution is to send the result of the SET command to file and then read the file from Java. ...
if (OS.indexOf("windows 9") > -1) {
p = r.exec( "command.com /c set > envvar.txt" );
else if ( (OS.indexOf("nt") > -1)
|| (OS.indexOf("windows 2000") > -1
|| (OS.indexOf("windows xp") > -1) ) {
// thanks to JuanFran for the xp fix!
p = r.exec( "cmd.exe /c set > envvar.txt" );
// then read back the file
Properties p = new Properties();
p.load(new FileInputStream("envvar.txt"));
Thanks to JP Daviau
// UNIX
public Properties getEnvironment() throws java.io.IOException {
Properties env = new Properties();
env.load(Runtime.getRuntime().exec("env").getInputStream());
return env;
Properties env = getEnvironment();
String myEnvVar = env.get("MYENV_VAR");
To read only one variable : // NT version , adaptation for other OS is left as an exercise...
Process p = Runtime.getRuntime().exec("cmd.exe /c echo %MYVAR%");
BufferedReader br = new BufferedReader
( new InputStreamReader( p.getInputStream() ) );
String myvar = br.readLine();
System.out.println(myvar);
Java's System properties contains some useful informations about the environment, for example, the TEMP and PATH environment variables (on Windows). public class ShowSome {
public static void main(String args[]){
System.out.println("TEMP : " + System.getProperty("java.io.tmpdir"));
System.out.println("PATH : " + System.getProperty("java.library.path"));
System.out.println("CLASSPATH : " + System.getProperty("java.class.path"));
System.out.println("SYSTEM DIR : " +
System.getProperty("user.home")); // ex. c:\windows on Win9x system
System.out.println("CURRENT DIR: " + System.getProperty("user.dir"));
Here some tips from H. Ware about the PATH on different OS.
PATH is not quite the same as library path. In unixes, they are completely different---the libraries typically have their own directories. System.out.println("the current value of PATH is: {" +
p.getProperty("PATH")+"}");
System.out.println("LIBPATH: {" +
System.getProperty("java.library.path")+"}");
gives the current value of PATH is:
{/home/hware/bin:/usr/local/bin:/usr/xpg4/bin:/opt/SUNWspro/bin:/usr/ccs/bin:
/usr/ucb:/bin:/usr/bin:/home/hware/linux-bin:/usr/openwin/bin/:/usr/games/:
/usr/local/games:/usr/ccs/lib/:/usr/new:/usr/sbin/:/sbin/:/usr/hosts/:
/usr/openwin/lib:/usr/X11/bin:/usr/bin/X11/:/usr/local/bin/X11:
/usr/bin/pbmplus:/usr/etc/:/usr/dt/bin/:/usr/lib:/usr/lib/lp/postscript:
/usr/lib/nis:/usr/share/bin:/usr/share/bin/X11:
/home/hware/work/cdk/main/cdk/../bin:/home/hware/work/cdk/main/cdk/bin:.}
LIBPATH:
{/usr/lib/j2re1.3/lib/i386:/usr/lib/j2re1.3/lib/i386/native_threads:
/usr/lib/j2re1.3/lib/i386/client:/usr/lib/j2sdk1.3/lib/i386:/usr/lib:/lib}
on my linux workstation. (java added all those execpt /lib and /usr/lib). But these two lines aren't the same on window either:
This system is windows nt the current value of PATH is:
{d:\OrbixWeb3.2\bin;D:\jdk1.3\bin;c:\depot\cdk\main\cdk\bin;c:\depot\
cdk\main\cdk\..\bin;d:\OrbixWeb3.2\bin;D:\Program
Files\IBM\GSK\lib;H:\pvcs65\VM\win32\bin;c:\cygnus
\cygwin-b20\H-i586-cygwin32\bin;d:\cfn\bin;D:\orant\bin;C:\WINNT\system32;C:\WINNT;
C:\Program Files\Dell\OpenManage\Resolution Assistant\Common\bin;
d:\Program Files\Symantec\pcAnywhere;
C:\Program Files\Executive Software\DiskeeperServer\;C:\Program Files\Perforce}
LIBPATH:
{D:\jdk1.3\bin;.;C:\WINNT\System32;C:\WINNT;d:\OrbixWeb3.2\bin;D:\jdk1.3\bin;
c:\depot\cdk\main\cdk\bin;c:\depot\cdk\main\cdk\..\bin;
d:\OrbixWeb3.2\bin;D:\Program Files\IBM\GSK\lib;
H:\pvcs65\VM\win32\bin;c:\cygnus\cygwin-b20\H-i586-cygwin32\bin;d:\cfn\bin;
D:\orant\bin;C:\WINNT\system32;
C:\WINNT;C:\Program Files\Dell\OpenManage\ResolutionAssistant\Common\bin;
d:\Program Files\Symantec\pcAnywhere;
C:\Program Files\Executive Software\DiskeeperServer\;C:\Program Files\Perforce} -
Environment variable path failed in oracle 11g installation
hi all,
i am reinstalling oracel 11g in my window 7 64 bit machine after i uninstalled it. however, i got an issue that is environment variable path failed in the installation process. this didn't happen when i firstly successfully installed oracle. how can i fix the issue? thanks in advance.
regards,
honguser571093 wrote:
hi,
the problem is i uninstalled oracle 11g in my windows 7 64 bit machine and then try to install it on my machine. during the prerequisite check stage, an error message popped up like this:
environment variable: "PATH" failed
This test checks whether the length of the environment variable "PATH" does not exceed the recommended length. (more details)
Expected Value
: 1023
Actual Value
: 1433
so, what is the reason caused this problem and how to fix it. thanks in advance.
hongI believe the error message is self-explanatory - assuming you you using a supported database and OS combination (which are unknown)
environment variable: "PATH" failed+
This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.+
Expected Value+
*: 1023*
Actual Value+
*: 1433*
Your PATH variable exceeds the limit of 1023 characters
HTH
Srini -
Hi all,
I am installing 11g database in order to play with it. My OS is windows 7 premium edition, personnal PC and I am having that message:
Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
Valeur attendue
: 1023
Valeur réelle
: 1558
Liste des erreurs :
PRVF-3929 : Adding the Oracle binary location to the PATH environment variable will exceed the OS length limit of [ "1023" ] for the variable on the node "DATAEBULLITION" - Cause: The installer needs to update the PATH environment variable to include the value "%ORACLE_HOME%/bin;". However, doing so will cause PATH to exceed the maximum allowable length that this operating system allows. - Action: Ensure that the sum of the lengths of your current PATH environment variable and that of "%ORACLE_HOME%/bin;" does not exceed the operating system limit. Restart the installer after correcting the setting for environment variable
Is anyone could help me as I don't understand what is PATH and how to reinstall it ?
THank youI found the answer by reading other user question.
-
How does java access user specific environment variables ?
Hi,
I'm running a java application on a W2K o/s. My application needs to be able to access the user environment variables in Windows but I don't know how to do this. Can anyone help ?
Thanks.http://www.rgagnon.com/javadetails/java-0150.html
-
Setting persitent system environment variables using java program
hai,
Iam tryng to write installation for an application,which require to set some persistent system environment variables using java program. I have tried using set command Runtime.getRuntime().exec("cmd /c set blah blah "),but this applies only to that particular DOS promt only,i presume.And this is not perisistent.please do help.
BijuThe solution I proposed worked only on Windows XP/2003.
The following solution will work on Windows NT/2000/XP/2003 with JDK 1.2+.
1- Download the [url http://www.gjt.org/download/time/java/jnireg/registry-3.1.3.zip]JNIRegistry zipped archive.
2- Open the registry-3.1.3.zip file and extract in the folder of your choice ( Eg. c:\setenv ) only the 2 first files (when sorted by path): ICE_JNIRegistry.dll and registry.jar.
You don't need to keep the folder tree in the extraction.
3- Create the following SetEnv.java file in the same folder ( Eg. c:\setenv ).
import com.ice.jni.registry.Registry;
import com.ice.jni.registry.RegistryKey;
import com.ice.jni.registry.RegStringValue;
import com.ice.jni.registry.RegistryValue;
public class SetEnv
static final String REG_HKLM_SUBKEY_NAME = "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment";
public static void main(String[] args)
throws Exception
new SetEnv().exec(args);
void exec(String[] args)
throws Exception
if (args.length != 2)
throw new IllegalArgumentException("\n\nUsage: java SetEnv {varName} {varValue}\n\n");
String varName = args[0];
String varValue = args[1];
RegistryKey key = null;
RegStringValue value;
try
key = Registry.HKEY_LOCAL_MACHINE.openSubKey(REG_HKLM_SUBKEY_NAME, RegistryKey.ACCESS_ALL);
value = new RegStringValue(key, varName, RegistryValue.REG_EXPAND_SZ);
value.setData(varValue);
key.setValue(value);
key.flushKey();
finally
try { key.closeKey(); }
catch (Exception e) {}
}4- Compile it.
javac -classpath .;registry.jar SetEnv.java
5- Run it. varName and varValue are strings of your choice.
java -classpath .;registry.jar -Djava.library.path=. SetEnv varName varValue -
Error Message:PRVF-3929 - PATH environment variable.
Hello,
I am trying to install Oracle on my laptop and getting the following error message resulting into hault of installation.
INFO: *********************************************
INFO: Environment variable: "PATH": This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
INFO: Severity:CRITICAL
INFO: OverallStatus:VERIFICATION_FAILED
INFO: -----------------------------------------------
INFO: Verification Result for Node:Indrajit-PC
INFO: Expected Value:1023
INFO: Actual Value:1159
INFO: Error Message:PRVF-3929 : Adding the Oracle binary location to the PATH environment variable will exceed the OS length limit of [ "1023" ] for the variable on the node "Indrajit-PC"
INFO: Cause: The installer needs to update the PATH environment variable to include the value "%ORACLE_HOME%/bin;".
However, doing so will cause PATH to exceed the maximum allowable length that this operating system allows.
INFO: Action: Ensure that the sum of the lengths of your current PATH environment variable and that of
"%ORACLE_HOME%/bin;" does not exceed the operating system limit.
Restart the installer after correcting the setting for environment variable.
Oracle Database Trying ton install - win64_11gR2
MY PC CONFIGURATION:
- Windows 7
- 64 bit
Can you please help me getting this solved please.C:\>Set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Indrajit\AppData\Roaming
asl.log=Destination=file
CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=INDRAJIT-PC
ComSpec=C:\Windows\system32\cmd.exe
COPLIB=C:\Program Files (x86)\Teradata\Client\13.0\CLIv2\
DataConnectorLibPath=C:\Program Files (x86)\Teradata\Client\13.0\bin
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Indrajit
JAVA_HOME=C:\Program Files\Java\jdk1.7.0
LOCALAPPDATA=C:\Users\Indrajit\AppData\Local
localtd=1
LOGONSERVER=\\INDRAJIT-PC
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\Program Files (x86)\AXSMOD;C:\Program Files (x86)\Teradata\Client\13.0\A
XSMOD\;C:\Program Files (x86)\Teradata\Client\13.0\bin;C:\Program Files (x86)\Te
radata\Client\13.0\bin;C:\Program Files (x86)\Teradata\Client\13.0\CLIv2\;C:\Pro
gram Files (x86)\Teradata\Client\13.0\ODBC Driver for Teradata\Lib;C:\Program Fi
les\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Fil
es\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\Syste
m32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI
Technologies\ATI.ACE\Core-Static;c:\Program Files\WIDCOMM\Bluetooth Software\;c:
\Program Files\WIDCOMM\Bluetooth Software\syswow64;;C:\Program Files\Dell\DW WLA
N Card\Driver;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\
QuickTime\QTSystem\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft
SQL Server\100\DTS\Binn\;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files (x
86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Teradata\Client\
13.0\Shared ICU Libraries for Teradata\lib\;C:\Program Files (x86)\AXSMOD;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2505
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
QTJAVA=C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Indrajit\AppData\Local\Temp
TMP=C:\Users\Indrajit\AppData\Local\Temp
USERDOMAIN=Indrajit-PC
USERNAME=Indrajit
USERPROFILE=C:\Users\Indrajit
windir=C:\Windows -
X11 environment variables on MacBook Pro
Hi
I have just got my new MacBook Pro and have installed Gimp to run using x11 that came on the apple installation disks however I can't seem to get the xterm to configure correctly.
GIMP is installed under /sw/bin but the default PATH for x11 does not include this location so I added PATH=$PATH:/sw/bin:/sw/sbin to a newly created .bash_profile. But x11 did not seem to use this file although terminal worked OK.
After doing a bit of research, I then created a .bashrc file with the PATH defined and changed the .bash_profile to source .bashrc with no other entries.
Again this worked OK for Terminal but now when I type 'echo $Path' in an x11 xterm the PATH displays two entries for /sw/bin & /sw/sbin. i.e.
$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/sw/bin:/sw/sbin:/sw/bin:/sw/sbin
Any ideas why? and how can I correct it?
Macbook Pro 17 Mac OS X (10.4.9)Sorry this was a bit brief; I think I was still asleep when I typed it.
The reasons are these:
1. Many fink programs require environment variables and other settings. When you source that init.sh file, it ensures everything is set up to work out of the box. (Among the things it does is to in turn source every relevant file in /sw/etc/profile.d -- take a look in it to see what, if anything, is in there). There is also some code to keep your path trimmed properly, so you don't get repeats pasted on.
2. Bash is unique in that either .bashrc or .bash_profile, but not both, get sourced. In a rooted X11 environment, everything works properly, but on OS X, where X11 is "rootless," it leads to unexpected behavior like what you saw. As long as you put everything into one file and then tell the other one to source its contents, you should be ok.
You can also run X11 stuff from Apple's terminal, provided you somewhere in a startup file have something to set the DISPLAY variable, usually to .0.
I've put more discussion of these things here
Maybe you are looking for
-
IPhone 5 proximity sensor not working! (iOS 6.0.1)
iPhone 5 proximity sensor not working! (iOS 6.0.1) When I call , the screen is not locked(
-
Putting animated gifs in a Fireworks layout: What is the deal?
Ok I have scoured the help files. Im not finding what I need to know. I want to create a Fireworks layout with 10 squares that have photos in them that fade back and forth between one image and another, slowly. I would imagine I can pull this off wit
-
Hi Have a strange issue, VL10B does not pick the PO, cross company purchases The delivery date is more than 60 dyas, while the delivery creation date is within VL10B std time period of 30 days. Also do not get anything in VETVG If I put route, VL10B
-
I am facing the following problems in oracle 8i database. 1. I have installed the oracle 8i database on windows2000. oracle 8i database is working right after that I have installed the form 6i on same stand along PC. When I make new form or open old
-
I have found the topic for external procedure in Oracle document both Oracle9 and Oracle8, but not in Oracle7. Is external procedure supported in Oracle7? If yes, where can I find the document? Thanks.