eclipse-classpath

Spring WebApp Maven - Source folder is not on the Java build class path

天大地大妈咪最大 提交于 2019-12-13 08:20:08
问题 I am following this article to understand how to create a Java web application with Spring MVC.I created the web app project CounterWebApp at a separate location first ( mvn eclipse:eclipse -Dwtpversion=2.0 ) and then imported the whole project in Eclipse. I am having difficulty to put the BaseController.java in the correct package as stated in the article.It's either "Source folder is not on the Java build class path", OR BaseController.java is not getting created at the location ( /src/main

Unable to get Eclipse to recognize binaries using ProcessBuilder located on $PATH on mac os x

倖福魔咒の 提交于 2019-12-11 16:18:13
问题 I have just switched over to working on a mac and I am trying to determine why I am unable to get Eclipse to recognize the binary I am trying to run via a ProcessBuilder . I have tried to run it both as a Java Application in Eclipse and as a TestNG test. If I compile the class with java and run it directly from the command line it will work but not through Eclipse which leads me to believe the configuration for the $PATH is not setup correctly in my TestNG configuration. Question I am sure

java.lang.NoClassDefFoundError error when GlassFish server receives a message

旧时模样 提交于 2019-12-08 11:58:13
问题 Using eclipse mars and glass fish, I have made a local server. In the same package I have a class called MyClass.java. Every time, the server receives a message, I want the message to be processed by MyClass (and its methods). This is what I have: package com.MT; import javax.websocket.OnClose; import javax.websocket.OnError; import javax.websocket.OnMessage; import javax.websocket.OnOpen; import javax.websocket.server.ServerEndpoint; @ServerEndpoint("/serverendpointdemo") public class

Postgres : No suitable Driver found for jdbc

岁酱吖の 提交于 2019-12-07 04:56:55
问题 I know this might be a possible duplicate of question posted here. Sorry for that.Here is the code i wrote for Database connection try{ Class.forName("org.postgresql.Driver"); } catch(ClassNotFoundException e) { e.printStackTrace(); } try{ String URL = "jdbc:posgresql://localhost:5432/postgres"; String USER = "postgres"; String PASS = "postgres"; Connection conn = DriverManager.getConnection(URL, USER, PASS); Statement st = conn.createStatement(); ResultSet rs = st.executeQuery("Select * from

Postgres : No suitable Driver found for jdbc

心已入冬 提交于 2019-12-05 10:53:55
I know this might be a possible duplicate of question posted here. Sorry for that.Here is the code i wrote for Database connection try{ Class.forName("org.postgresql.Driver"); } catch(ClassNotFoundException e) { e.printStackTrace(); } try{ String URL = "jdbc:posgresql://localhost:5432/postgres"; String USER = "postgres"; String PASS = "postgres"; Connection conn = DriverManager.getConnection(URL, USER, PASS); Statement st = conn.createStatement(); ResultSet rs = st.executeQuery("Select * from employee"); while(rs.next()){ System.out.println(rs.getString(1)); } } catch(SQLException es){ es

How to change Eclipse-Groovy plugin Groovy libraries?

风流意气都作罢 提交于 2019-12-01 02:04:52
问题 I am using the newest version (2.8.0) of the Eclipse-Groovy plugin that ships with groovy-all-2.1.5.jar . I added Guice to my Groovy project, and when I go to run them from inside Eclipse I get the following error in the console output: Caught: java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling at net.me.myapp.utils.restclient.RestClient.<init>(RestClient.groovy