Netbeans 3 on Windows 7 - netbeans

Has anyone managed to make Netbeans 3 work on Windows 7? I realise this is against everything that is holy, but I either try and get it working, buy new hardware, or upgrade the whole project to a later IDE...
I had to manually set my JAVA_HOME and place a folder path on the command line when running the installer, but after that I am getting the following error in the install log:
Found matching JVM at c:\Java\jdk1.5.0_06
Matching JVM home is c:\Java\jdk1.5.0_06
Matching JVM file is C:\Users\spalmer\AppData\Local\Temp\LRE72A4.tmp
Executing launch script command: "c:\Java\jdk1.5.0_06/bin\java.exe" -cp "";"C:\Users\spalmer\AppData\Local\Temp\LRE72A5.tmp\setup.jar";"" -Dtemp.dir="C:\Users\spalmer\AppData\Local\Temp" -Dis.jvm.home="c:\Java\jdk1.5.0_06" -Dis.jvm.temp="0" -Dis.media.home="C:\Users\spalmer\AppData\Local\Temp\LRE72A5.tmp\setup.jar" -Dis.launcher.file="C:\development\surveycollector\trunk\docs\Everything you need to set up a survey collector\netbeans-3_6-windows.exe" -Dis.jvm.file="C:\Users\spalmer\AppData\Local\Temp\LRE72A4.tmp" -Dis.external.home="C:\development\surveycollector\trunk\docs\Everything you need to set up a survey collector" -Xms20m -Xmx60m run in working directory C:\development\surveycollector\trunk\docs\Everything you need to set up a survey collector
Output from the launch script execution
StdOut:
ErrOut:
An error occurred during wizard bean change notification:
java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at javax.swing.plaf.basic.BasicProgressBarUI.getPreferredSize(BasicProgressBarUI.java:757)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
at com.installshield.wizard.awt.ColumnLayout.layoutContainer(ColumnLayout.java:174)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validate(Container.java:1448)
at com.installshield.wizard.awt.AWTWizardUI.setCurrent(AWTWizardUI.java:1827)
at com.installshield.wizard.awt.AWTWizardUI.runnableBeanStarted(AWTWizardUI.java:1873)
at com.installshield.wizard.StandardWizardListener.execute(StandardWizardListener.java:127)
at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:106)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1545)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at javax.swing.plaf.basic.BasicProgressBarUI.getPreferredSize(BasicProgressBarUI.java:757)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
at com.installshield.wizard.awt.ColumnLayout.layoutContainer(ColumnLayout.java:174)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validate(Container.java:1448)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at javax.swing.plaf.basic.BasicProgressBarUI.getPreferredSize(BasicProgressBarUI.java:757)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
at com.installshield.wizard.awt.ColumnLayout.layoutContainer(ColumnLayout.java:174)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validate(Container.java:1448)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at javax.swing.plaf.basic.BasicProgressBarUI.getPreferredSize(BasicProgressBarUI.java:757)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
at com.installshield.wizard.awt.ColumnLayout.layoutContainer(ColumnLayout.java:174)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validate(Container.java:1448)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

I would suggest importing the project to a newer version of the IDE. You'll make the code more accessible for future needs. Otherwise you're just perpetuating an obvious problem.
If that's not possible (sometimes it's not our call) here's another VM option you can check out: http://www.virtualbox.org/

I just found a simpler fix to our problem:
C:\Java>SET JAVA_HOME='C:\j2sdk1.4.2_17'
C:\Java>netbeans-3_6-windows
As you see, that's all I had to do and Netbeans installed perfectly, using Java 1.4 as runtime.
Just in case you need it still.

Check out Windows Virtual PC (Windows XP Mode or Win 7). Installing Netbeans 3 on it might do the trick.

My guess is that Java 5 is too new for NB3. Try Java 1.4.2 or maybe even 1.3.something.

I had the similar NPE in a different szenario with an old JExpress installer. I found a workaround.
The workaround is to change desktop theme to some default theme like Win XP or Classic. Then this problem does not happen.

Related

when drools example is started,it is failed, Why?

Notes:
Java must be installed. Get the JRE (http://www.java.com) or the JDK.
For optimal performance, Java is recommended to be OpenJDK 7 or higher.
For JDK, the environment variable JAVA_HOME should be set to the JDK installation directory
For example: set "JAVA_HOME=C:\Program Files\Java\jdk1.6.0"
The working dir should be the directory of this script.
Starting examples app with JDK from environment variable JAVA_HOME (C:\Program Files\Java\jdk1.8.0_251)...
13:07:44.382 [main] ERROR o.k.a.i.utils.ServiceDiscoveryImpl.processKieService:131 - Loading failed because There already exists an implementation for service org.drools.core.reteoo.KieComponentFactoryFactory with same priority 0
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.drools.dynamic.DynamicServiceRegistrySupplier.get(DynamicServiceRegistrySupplier.java:32)
at org.drools.dynamic.DynamicServiceRegistrySupplier.get(DynamicServiceRegistrySupplier.java:23)
at org.kie.api.internal.utils.ServiceRegistry$Impl.getServiceRegistry(ServiceRegistry.java:88)
at org.kie.api.internal.utils.ServiceRegistry$ServiceRegistryHolder.(ServiceRegistry.java:47)
at org.kie.api.internal.utils.ServiceRegistry.getInstance(ServiceRegistry.java:39)
at org.kie.api.internal.utils.ServiceRegistry.getService(ServiceRegistry.java:35)
at org.kie.api.KieServices$Factory$LazyHolder.(KieServices.java:358)
at org.kie.api.KieServices$Factory.get(KieServices.java:365)
at org.kie.api.KieServices.get(KieServices.java:349)
at org.drools.examples.DroolsExamplesApp.(DroolsExamplesApp.java:59)
at org.drools.examples.DroolsExamplesApp.main(DroolsExamplesApp.java:52)
Caused by: java.lang.RuntimeException: Unable to build kie service url = jar:file:/C:/Users/slb0547/Downloads/drools-distribution-7.45.0.Final/drools-distribution-7.45.0.Final/examples/binaries/drools-traits-7.45.0.Final.jar!/META-INF/kie.conf
at org.kie.api.internal.utils.ServiceDiscoveryImpl.registerConfs(ServiceDiscoveryImpl.java:105)
at org.kie.api.internal.utils.ServiceDiscoveryImpl.lambda$getServices$1(ServiceDiscoveryImpl.java:83)
at java.util.Optional.ifPresent(Optional.java:159)
at org.kie.api.internal.utils.ServiceDiscoveryImpl.getServices(ServiceDiscoveryImpl.java:81)
at org.kie.api.internal.utils.ServiceRegistry$Impl.(ServiceRegistry.java:60)
at org.drools.dynamic.DynamicServiceRegistrySupplier$LazyHolder.(DynamicServiceRegistrySupplier.java:27)
... 11 more
Caused by: java.lang.RuntimeException: There already exists an implementation for service org.drools.core.reteoo.KieComponentFactoryFactory with same priority 0
at org.kie.api.internal.utils.ServiceDiscoveryImpl$PriorityMap.put(ServiceDiscoveryImpl.java:222)
at org.kie.api.internal.utils.ServiceDiscoveryImpl.processKieService(ServiceDiscoveryImpl.java:124)
at org.kie.api.internal.utils.ServiceDiscoveryImpl.registerConfs(ServiceDiscoveryImpl.java:101)
... 16 more
I changed the version to usedrools-distribution-6.5.0.Final instead of the 7.46. Now I can play with the examples.
That's not a real answer, but I hope that will be enough for now.

wiremock standalone server not starting using --print-all-network-traffic

I am trying to run wiremock stand along server using command .
java -jar wiremock-1.57-standalone.jar --port=9090 --verbose --print-all-network-traffic
But it always give me exception .
Exception in thread "main"
Exception: java.util.MissingResourceException thrown from the
UncaughtExceptionHandler in thread "main"
But after removing network command it starts fine.
Could you pleas help me with this.
Thanks
It was issue of old versions i updated jar file from 1.5 to 2.6

how solve launching Talend open studio Errors?

I have already installed the talend open studio for a month and suddenly when I open it last morning it gives this error
java.lang.NoClassDefFoundError: org/eclipse/jdt/core/JavaCore at
org.talend.designer.runprocess.java.JavaProcessorUtilities.getTalendJavaProject(JavaProcessorUtilities.java:99)
at
org.talend.designer.runprocess.DefaultRunProcessService.getTalendProcessJavaProject(DefaultRunProcessService.java:514)
at
org.talend.designer.runprocess.RunProcessService.getTalendProcessJavaProject(RunProcessService.java:356)
at
org.talend.designer.runprocess.DeleteAllJobWhenStartUp$1.run(DeleteAllJobWhenStartUp.java:85)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at
org.talend.designer.runprocess.DeleteAllJobWhenStartUp.earlyStartup(DeleteAllJobWhenStartUp.java:136)
at
org.talend.designer.runprocess.DeleteAllJobWhenStartUp.startup(DeleteAllJobWhenStartUp.java:56)
at
org.talend.designer.runprocess.RunProcessService.deleteAllJobs(RunProcessService.java:228)
at org.talend.core.CoreService.deleteAllJobs(CoreService.java:318)
at
org.talend.core.repository.model.ProxyRepositoryFactory.logOnProject(ProxyRepositoryFactory.java:1879)
at
org.talend.repository.ui.login.LoginHelper$1.run(LoginHelper.java:426)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
How can I deal with please...thanks?
If you read logs (TOS_DI-20170623_1246-V6.4.1\workspace.metadata.log), you can see
Caused by: org.eclipse.core.internal.resources.ResourceException:
Could not read metadata for
'C:\Programmation\TOS_DI-20170623_1246-V6.4.1\workspace.metadata.plugins\org.eclipse.core.resources.root.indexes\properties.index'.
Unexpected version: 0. at
org.eclipse.core.internal.localstore.Bucket.load(Bucket.java:303) at
org.eclipse.core.internal.properties.PropertyBucket.load(PropertyBucket.java:258)
at org.eclipse.core.internal.localstore.Bucket.load(Bucket.java:274)
at
org.eclipse.core.internal.localstore.BucketTree.loadBucketFor(BucketTree.java:115)
at
org.eclipse.core.internal.properties.PropertyManager2.getProperty(PropertyManager2.java:134)
at
org.eclipse.core.internal.resources.Resource.getPersistentProperty(Resource.java:1205)
at
org.eclipse.jdt.internal.core.JavaModelManager.loadVariablesAndContainers(JavaModelManager.java:3265)
at
org.eclipse.jdt.internal.core.JavaModelManager.startup(JavaModelManager.java:5036)
at org.eclipse.jdt.core.JavaCore.start(JavaCore.java:5651) at
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
at
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method) at
org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
... 21 more
I just removed 'TOS_DI-20170623_1246-V6.4.1\workspace.metadata.plugins\org.eclipse.core.resources.root.indexes\properties.index' and it worked well
Go to folder TOS_DI-20170623_1246-V6.4.1\workspace.metadata.plugins
Delete metadata.plugin, and restart your system open talend studio. It will take some time for loading plugins+ metadata.
After this we want to create talend projects.
Go to windows + search -> type run -> type %temp%-> remove/ delete all files.

LogManager Exception in JBOSS AS 7.1 with java.util.Logger

I created a java application and initialize a java.util.Logger with that application and run that application as -javaagent with jboss AS 7 server and i got IllegalStateException (i am using eclipse IDE).Here follows my logger initialization code
static public void setup() throws IOException {
// Get the global logger to configure it
Logger logger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
logger.setLevel(Level.INFO);
fileTxt = new FileHandler("C:/Users/abc/Desktop/ATAGENT/Logging.txt");
fileHTML = new FileHandler("C:/Users/abc/Desktop/ATAGENT/Logging.html");
// create txt Formatter
formatterTxt = new SimpleFormatter();
fileTxt.setFormatter(formatterTxt);
logger.addHandler(fileTxt);
// create HTML Formatter
formatterHTML = new BMITHtmlFormatter();
fileHTML.setFormatter(formatterHTML);
logger.addHandler(fileHTML);
}
When i create -javaagent jar appended with above lines of code and run with jboss as7 server i got following exception
WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.jboss.as.server.Main.main(Main.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.modules.Module.run(Module.java:260)
at org.jboss.modules.Main.main(Main.java:291)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
at org.jboss.logmanager.Logger.getLogger(Logger.java:60)
at org.jboss.logmanager.log4j.BridgeRepositorySelector.(BridgeRepositorySelector.java:42)
... 7 more
And i serched in fourms and i got a solution which is Open the launch configuration for the server definition.
and add -logmodule org.jboss.logmanager to the program arguments before org.jboss.as.standalone.
But it results the same exception with some additional warning. Here follows the exception
WARNING: -logmodule is deprecated. Please use the system property 'java.util.logging.manager' or the 'java.util.logging.LogManager' service loader.
WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.jboss.as.server.Main.main(Main.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.modules.Module.run(Module.java:260)
at org.jboss.modules.Main.main(Main.java:291)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
at org.jboss.logmanager.Logger.getLogger(Logger.java:60)
at org.jboss.logmanager.log4j.BridgeRepositorySelector.(BridgeRepositorySelector.java:42)
... 7 more
I had the same problem with JBOSS EAP 6, it took me 2 days for find a solution !.
The cause is that your agent need to create a Logger at statup, he need to be able to access the logmanager classes before JBOSS Modules has been initialized. You need to add JBoss LogManager to the boot classloader. Then, there will be a conflict between LogManager available via ModuleClassLoader and classes loaded via system classloader.
The solution is to make Java Agent and JBoss Modules use the same classloader to load the LogManager classes.
For EAP 6, In your standalone.conf (or domain) (It must be close for your version)
add
JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:$JBOSS_HOME/modules/org/jboss/logmanager/main/jboss-logmanager-1.3.1.jar"
and for make Java Agent and JBoss Modules use the same classloader
modify this piece of code in adding org.jboss.logmanager like this :
if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman,org.jboss.logmanager"
fi
Hope this will help.
I found the solution after searching for couple of days in the below link.
https://github.com/jbossas/jboss-as-maven-plugin/issues/40#issuecomment-14943429
I have to tweak a little bit to get is work in Windows 7.
Open Eclipse.
Add Jboss 7.1 Runtime 1 server.
Select the Server and press F3.
Click on Open Launch Config.
Goto VM arguments.
Add the below two entries.
"-Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager"
"-Djava.util.logging.manager=org.jboss.logmanager.LogManager"
Now select the Classpath TAB
Select User Entries
Click Add External Jars
Select the three jar files
a) jboss-logmanager-1.2.0.GA.jar
b) jboss-logmanager-log4j-1.0.0.GA.jar
c) log4j-1.2.16.jar
Paths
C:/jboss-as-7.1.1.Final/modules/org/jboss/logmanager/main/jboss-logmanager-1.2.0.GA.jar"
C:/jboss-as-7.1.1.Final/modules/org/jboss/logmanager/log4j/main/jboss-logmanager-log4j-1.0.0.GA.jar"
C:/jboss-as-7.1.1.Final/modules/org/apache/log4j/main/log4j-1.2.16.jar"
This will start the standalone jboss without any issues.
In EAP 6.4, the correct logmanager's path should be
$JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-1.5.4.Final-redhat-1.jar

jena ExceptionInInitializerError

i'm jena newbie and I have this error:
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.<clinit>(RDFReaderFImpl.java:74)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.<clinit>(ModelCom.java:54)
at com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:142)
at com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:136)
at com.hp.hpl.jena.vocabulary.OWL.<clinit>(OWL.java:37)
at com.hp.hpl.jena.ontology.ProfileRegistry.<clinit>(ProfileRegistry.java:47)
at com.hp.hpl.jena.ontology.OntModelSpec.<clinit>(OntModelSpec.java:53)
at myprogram.Connection.<init>(Connection.java:46)
Where the code part that jumps into this exception is this (Connection.java:46):
m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null );
The userlibrary I defined contains:
commons-codec-1.5.jar
httpclient-4.1.2.jar
httpcore-4.1.3.jar
jcl-over-slf4j-1.6.4
jena-arq-2.9.4.jar
jena-core-2.7.4.jar
jena-iri-0.9.4.jar
jena-tdb-0.9.4.jar
log4j-1.2-16.jar
slf4j-api-1.7.2.jar
slf4j-log4j12-1.6.4.jar
xercesimpl-2.10.0.jar
xml-apis-1.4.01.jar
Java version is jdk1.7.0_11
Anyone can help me?
AWT-EventQueue-0 -- what environment are you running in?
One possibility is that there is another version of Jena around because stacktrace does not quite align with the 2.7.4 codebase.