classpath

Android NDK: Eclipse parameter and javah

僤鯓⒐⒋嵵緔 提交于 2019-12-22 13:59:27
问题 I spent hours and hours on it not moving an inch forward. I have redone the project several times and nothing else is left outside places. Hope someone here can shed some light pointing out some direction. On Linux Eclipse IDE panel > Run > External Tools > External Tools Configurations: Name: Dev javah Tab [main]: * location: /usr/java/jdk1.6.0_25/bin/javah * working directory: ${workspace_loc:/Dev/bin} * Arguments: ?? I have tried: * Arguments: -d ${workspace_loc:/Dev/jni} com.dev

I need to load application.conf via typesafe's ConfigFactory within an sbt Task

与世无争的帅哥 提交于 2019-12-22 10:48:37
问题 I have a simple project here: https://github.com/bloo/foo-gen-config/ .. that does one thing - load sbt and runs the task foo-gen , which fails. The Task def is here: https://github.com/bloo/foo-gen-config/blob/master/project/FooConfigPlugin.scala#L19-L25 (I alluded to this question along with a number of other convoluted issues here: How to make a sbt task use a specific configuration scope? but have since distilled it down to a single issue I need help with) I am open to suggestions on how

Source folder is not on the Java build class path, creating Java package

。_饼干妹妹 提交于 2019-12-22 10:48:08
问题 I am trying to create a package merge under sort, but it it saying that: Source folder is not on the Java build class path So I right click on sort folder, and try to add it to the Java build class path. But only option there is exclude, so it means it should already be included to class path. So how can I create the package under sort? EDIT: added .classpath : <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org

Classpath problems:running ant java task with Maven Antrun plugin

亡梦爱人 提交于 2019-12-22 10:39:09
问题 When running ant task from maven ant run plugin I can set maven classpath as an ant property. However when I try to run <ant:java task setting this exact classpath I get the error that the reference can not be find. As if the whole classpath is interpreted as one jar. Is there a way to somehow set this classpath to ant java task? (from maven) <plugin> <artifactId>maven-antrun-plugin</artifactId> .... <property name="compile_classpath" refid="maven.compile.classpath"/> .... (from ant) ...

Add jar file to spring-boot classpath at runtime

删除回忆录丶 提交于 2019-12-22 10:24:14
问题 I want develop a modular application using spring-boot and plugins . The plugins will be handled with spring-plugin and these are stored in jars files in a directory (for example: /home/application/plugins).How can I add jars files to the application classpath at runtime and loading classes and beans (plugins) that are in these jars files. Best regards, HLicea 回答1: You need to use PropertiesLauncher instead of JarLauncher: java -cp "yourBoot.jar" -Dloader.path=plugins/ -Dloader.main=your

java relative path vs absolute path on command line

早过忘川 提交于 2019-12-22 09:50:28
问题 Running into an interesting problem When I run: $cd /projects/MyProject/ $java -cp . S3Sample This works fine. However if I run: $java -cp /projects/MyProject /projects/MyProject/S3Sample Error: Could not find or load main class .projects.MyProject.S3Sample Why is that. Did a quick look and can't find the answer. Thanks! 回答1: I have this folder structure: - home - org - test + Foo.java + Foo.class And the code in Foo.java is a simple hello world application: //Note the usage of the package

maven assembly create jar with dependency and class path

人走茶凉 提交于 2019-12-22 09:36:41
问题 I have a maven project with a lot of dependencies. I want to pack all in a jar with dependency using assembly plugin, but I don't won't all the dependencies jars unpacked in a big mess. I want all of them do go into lib folder, but I don't know how to add the class path. my pom: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

“loader constraints violated when linking javax/xml/namespace/QName class” from webapp on Oracle 10g

久未见 提交于 2019-12-22 06:59:11
问题 We have a web application that can be deployed on many application servers, including Oracle 10g. On that platform, however, we are having classpath issues. The webapp uses JAXB 2, but Oracle 10g ships with JAXB 1, and this was causing errors. To get around those we configured Oracle to prefer classes in our webapp, but now we are getting the above error when attempting to instantiate a JAXB context. Looking up the "loader constraints violated" exception - it seems to be thrown when a class

-sourcepath vs -classpath

女生的网名这么多〃 提交于 2019-12-22 05:54:31
问题 Studying for the oracle certification I am trying all the possible scenarios that might occur during the exam. For example, here there is a little doubt about shell command line (unix based): Let's imagine there is a folder called myProject and a sub folder called myProject/source. File SubFile.java is in the folder myProject/source and another file File.java is in myProject folder. By typing the following commands I get to different behaviors: cd source (therefore, currently I am on

How should I set CLASSPATH?

天涯浪子 提交于 2019-12-22 05:05:26
问题 I did this before: CLASSPATH=".:/home/phoenies/jdk1.6.0_17/lib/tools.jar:/home/phoenies/jdk1.6.0_17/lib/dt.jar" But today an article says I should do this: CLASSPATH=".:/home/phoenies/jdk1.6.0_17/lib" If I do so, will it search all the jar files in lib? So it's probably a shorter way? 回答1: Since you are using JDK6, you can use classpath wildcards: CLASSPATH=".:/home/phoenies/jdk1.6.0_17/lib/*" will match all JARS inside lib/ Check out http://java.sun.com/javase/6/docs/technotes/tools/windows