eclipse

Eclipse - Reference file in another Project

萝らか妹 提交于 2021-02-05 05:08:16
问题 Edit: My solution at bottom of post. I have 2 projects that share the same XML/XSD data in eclipse. I've tried many different things to break the data into a separate project and just reference that instead through various methods, with not much luck. My goal is so I can click run in eclipse for each project separately and they both load from the same data. When the project is finally built, there will be 3 jars (the two projects,+ a lib), which will be in the same directory with the xml and

Eclipse - Reference file in another Project

。_饼干妹妹 提交于 2021-02-05 05:04:11
问题 Edit: My solution at bottom of post. I have 2 projects that share the same XML/XSD data in eclipse. I've tried many different things to break the data into a separate project and just reference that instead through various methods, with not much luck. My goal is so I can click run in eclipse for each project separately and they both load from the same data. When the project is finally built, there will be 3 jars (the two projects,+ a lib), which will be in the same directory with the xml and

The project was not built due to “Failed to init ct.sym for C:\Program Files\Java\jre-10.0.2\lib\jrt-fs.jar” in IDE Eclipse

江枫思渺然 提交于 2021-02-04 22:14:07
问题 Good day! I did a servlet in IDE Eclipse, but I got this problem after creating a new Dynamic Web Project (File / New / Dynamic Wev Project). I see this in Markers: "The project was not built due to "Failed to init ct.sym for C:\Program Files\Java\jre-10.0.2\lib\jrt-fs.jar" in IDE Eclipse" My servlet does not want to build. There is a java-file, but no class-file after building. I deleted, created, cleaned my project. Later I deleted and added Tomacat-server. Java EE is intalled. No result.

JPA functionality in a deployed WAR on Tomcat

早过忘川 提交于 2021-02-04 21:43:42
问题 I'm working on a project which aims to allow a user to add some film details to a database and displays the list of existing films. I have created a Dynamic Web Project in Eclipse using JPA to communicate with a remote database. All of this works fine when I run the project in the Eclipse IDE but when I export it to a WAR and deploy it on a Tomcat server the JPA functionality no longer works. The following error is thrown: javax.servlet.ServletException: Servlet execution threw an exception

JPA functionality in a deployed WAR on Tomcat

余生长醉 提交于 2021-02-04 21:43:06
问题 I'm working on a project which aims to allow a user to add some film details to a database and displays the list of existing films. I have created a Dynamic Web Project in Eclipse using JPA to communicate with a remote database. All of this works fine when I run the project in the Eclipse IDE but when I export it to a WAR and deploy it on a Tomcat server the JPA functionality no longer works. The following error is thrown: javax.servlet.ServletException: Servlet execution threw an exception

ANSI escape characters does not appear the way they should on Eclipse console

时光毁灭记忆、已成空白 提交于 2021-02-04 21:41:52
问题 I have a Scala project and I use Scala-Eclipse-Plugin along with sbt. So far so good. But the problem is that sbt writes some ANSI escape sequences to the output (I might be wrong about this?).They appear pretty well when I invoke sbt from shell but inside eclipse, they appear like this: [0m[[0minfo[0m] [34m[0m what's wrong ? 回答1: The Eclipse console does not support ANSI escape sequences. 回答2: See the discussion for "an eclipse console view that respects ansi color codes" I followed the

Eclipse console not printing Chinese characters

孤人 提交于 2021-02-04 21:41:00
问题 I have written a Java function which take a string parameter and generate a random id from it using some logic. Everything is working fine if my String contains English characters but when I pass Chinese characters, these are replaced by ??? Here is my code: public static String generateId(String inputString) { /** * Split input string on the basis of white spaces */ String arr[] = inputString.split(" "); /** * Change the first character of first substring to lowercase */ String id = arr[0]

Eclipse console not printing Chinese characters

时光毁灭记忆、已成空白 提交于 2021-02-04 21:39:56
问题 I have written a Java function which take a string parameter and generate a random id from it using some logic. Everything is working fine if my String contains English characters but when I pass Chinese characters, these are replaced by ??? Here is my code: public static String generateId(String inputString) { /** * Split input string on the basis of white spaces */ String arr[] = inputString.split(" "); /** * Change the first character of first substring to lowercase */ String id = arr[0]

Unable to use Bootstrap plugin with Struts 2 in Eclipse project

雨燕双飞 提交于 2021-02-04 21:12:22
问题 I have been trying to use Bootstrap plugin with my Struts 2 project, but whenever I try to add the Bootstrap or JQuery jar file to my WEB-INF/lib folder, the project doesn't run and shows up a 404 error . I have gone through few examples in the Internet, where people have been using bootstrap in Maven project and its working fine, but mine isn't a Maven project. This is the error I have been getting in the Eclipse console. Unable to load configuration. - [unknown location] at com.opensymphony

Why does Eclipse generate .class file if there is a syntax error in my Java source file?

旧街凉风 提交于 2021-02-04 17:42:25
问题 When I am creating my project using the Eclipse IDE it is generating a class file even when there is a syntax error in my code? class Test { public void test(String value) { System.out.println("TEST CALLED WITH VALUE " + value); } } class Abc { Test obj = new Test(); public String firstCallToMethodFromTest() { System.out.println("FIRST CALL TO THE METHOD FROM TEST CLASS"); String result = obj.test("TEST"); return result; } public String secondCallToMethodFromTest() { System.out.println(