Friday, November 21, 2014

Three hurdles I cleared in previewing a Java app!

  1. When you click the "Run Project" button in NetBeans IDE 8.0.1 and you see an error saying "The target server has not been set or has been removed. Right-click the project in the Projects window and choose Resolve Missing Server Problem to set the target server." ...really you need to right-click the topmost node in the "Projects" pane to make this happen. I picked GlassFish as the server.
  2. "C:\Whatever\nbproject\build-impl.xml:1014: Warning: Could not find file C:\Users\jdoe\Downloads\encoder-1.1.1.jar to copy. BUILD FAILED (total time: 3 seconds)" is another error I saw in attempting to run the server for the first time. I was missing a reference to encoder-1.1.1.jar which one may download at https://www.owasp.org/index.php/OWASP_Java_Encoder_Project ...right-click on "Libraries" in the "Projects" pane and pick "Properties" to remove and readd the dependency. Libraries is to Java what References is to ASP.NET it seems.
  3. "The Java DB location is not set correctly." is yet another error I encounted. It was set to C:\Program Files\Java\jdk1.7.0_71\db abd I had to set it to C:\Program Files\Java\jdk1.8.0_25\db instead. This was done by tabbing to the "Services" pane, right-clicking "Java DB" and picking "Properties..."

No comments:

Post a Comment