classpath

How can I specify an Eclipse .classpath entry for specific O/S platform?

江枫思渺然 提交于 2020-08-02 07:22:11
问题 I am working on an SWT project as part of a team. We are constantly breaking each others build environment because Eclipses .classpath file is checked into version control and we include different SWT libraries for our machines. Depending on who committed last, the .classpath entry can be: <classpathentry kind="lib" path="lib/swt/swt-win32.jar"/> or <classpathentry kind="lib" path="lib/swt/swt-carbon.jar"/> or <classpathentry kind="lib" path="lib/swt/swt-gtk.jar"/> It appears that the

How can I specify an Eclipse .classpath entry for specific O/S platform?

别等时光非礼了梦想. 提交于 2020-08-02 07:22:08
问题 I am working on an SWT project as part of a team. We are constantly breaking each others build environment because Eclipses .classpath file is checked into version control and we include different SWT libraries for our machines. Depending on who committed last, the .classpath entry can be: <classpathentry kind="lib" path="lib/swt/swt-win32.jar"/> or <classpathentry kind="lib" path="lib/swt/swt-carbon.jar"/> or <classpathentry kind="lib" path="lib/swt/swt-gtk.jar"/> It appears that the

NoClassDefFoundError: groovy/lang/binding

折月煮酒 提交于 2020-07-18 22:52:10
问题 I'm trying to evaluate Groovy script inside a Java app by using GroovyShell. Problem: My program compiles ok, but gives me a NoClassDefFoundError at run-time. TestClass.java: import groovy.lang.Binding; import groovy.lang.GroovyShell; class TestClass { static Binding binding; static GroovyShell shell; public static void main(String[] args) { System.out.println("Hello, world."); binding = new Binding(); shell = new GroovyShell(binding); Object value = shell.evaluate("5 ** 5"); } } Then I

Cannot access 'androidx.lifecycle.HasDefaultViewModelProviderFactory' which is a supertype of 'FavoriteBottomDialogFragment'. Check your module cla

﹥>﹥吖頭↗ 提交于 2020-07-15 11:56:01
问题 I am getting error in the whole class that extends BottomSheetDialogFragment Cannot access 'androidx.lifecycle.HasDefaultViewModelProviderFactory' which is a supertype of 'FavoriteBottomDialogFragment'. Check your module classpath for missing or conflicting dependencies The class is in app module and this module implements two other modules : core and presentation-core build.gradle dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project (':core')

Add Classpath in Manifest file of jar in gradle in java 8

末鹿安然 提交于 2020-06-28 10:49:13
问题 I need to add the data in MANIFEST.MF of jar file in below format I tried the below method but not able to achieve it. i need it in below way. I'm using gradle 2.3 and java java version "1.8.0_66" Java(TM) SE Runtime Environment (build 1.8.0_66-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode) My build.gradle `apply plugin: 'java' repositories { mavenCentral() } dependencies { compile 'org.slf4j:slf4j-api:1.7.12' compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.4'

Creating Extensible Applications using service-loaders according to a singleton design pattern

我的梦境 提交于 2020-05-16 03:11:34
问题 I'm working on project on IntelliJ IDEA and I want to add support to Extensible Applications in my java application. The way to do it is, creating a jar file in this jar file there should be a META-INF/services directory, inside this directory, I need to add a file whose name contains the same name as the fully-qualified name of the interface which provides the service, and in that file it should have the fully-qualified name of the implementations of that interface. This is the encrypt and

Access resources from another jar file

梦想与她 提交于 2020-05-10 07:37:36
问题 I have a simple structure: A data jar file which contains a batch of data, and a service jar file, which runs a service using the data. To make the data easy to replace, I have them separate, and service.jar's classpath contains the directory which data.jar is in. Within service.jar, I use getResource to load the data files. This works if the data files are directly within the folder, but fails when they are inside data.jar; This fails: all + globalclasspath | + data.jar | + mine.properties +

Access resources from another jar file

时光总嘲笑我的痴心妄想 提交于 2020-05-10 07:36:06
问题 I have a simple structure: A data jar file which contains a batch of data, and a service jar file, which runs a service using the data. To make the data easy to replace, I have them separate, and service.jar's classpath contains the directory which data.jar is in. Within service.jar, I use getResource to load the data files. This works if the data files are directly within the folder, but fails when they are inside data.jar; This fails: all + globalclasspath | + data.jar | + mine.properties +

IntelliJ IDEA: “cannot resolve symbol” for String, System and other Java classes

心已入冬 提交于 2020-05-05 05:26:24
问题 I recently downloaded IntelliJ IDEA to a different computer. On one computer it works fine on the other computer it is giving me this current issue. When i open a new project with a template it automatically shows errors everywhere even though it allows the code to run and shows the output correctly: standard Java library classes like String and System are highlighted in red and the error tooltip says: "cannot resolve symbol". I have tried "Invalidate caches/Restart", but it didn't help. 回答1:

IntelliJ IDEA: “cannot resolve symbol” for String, System and other Java classes

懵懂的女人 提交于 2020-05-05 05:26:07
问题 I recently downloaded IntelliJ IDEA to a different computer. On one computer it works fine on the other computer it is giving me this current issue. When i open a new project with a template it automatically shows errors everywhere even though it allows the code to run and shows the output correctly: standard Java library classes like String and System are highlighted in red and the error tooltip says: "cannot resolve symbol". I have tried "Invalidate caches/Restart", but it didn't help. 回答1: