classpath

JPA with TopLink: No META-INF/persistence.xml was found in classpath

大兔子大兔子 提交于 2019-11-28 03:30:53
问题 public class LoginTest { public static void main(String[] args) { EntityManagerFactory emf = Persistence.createEntityManagerFactory("IRCBotPU"); EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); Login lg = new Login(); lg.setPassword("password"); lg.setUserName("Rocky"); em.persist(lg); em.flush(); Login st = em.find(Login.class, lg.getPassword()); System.out.println(st); em.getTransaction().commit(); em.close(); emf.close(); } } I'm getting an Exception when I try to

Could not locate clojure/core/async__init.class or clojure/core/async.clj on classpath

☆樱花仙子☆ 提交于 2019-11-28 03:26:03
问题 Does anyone know why I'm getting the below error? I read through answers of similar questions, which recommended using Leiningen, which I've done below and still get the error. MacBook-Pro:~ xxx$ lein new app test Generating a project called test based on the 'app' template. MacBook-Pro:~ xxx$ cd test MacBook-Pro:test xxx$ lein repl nREPL server started on port 59623 on host 127.0.0.1 REPL-y 0.2.1 Clojure 1.5.1 Docs: (doc function-name-here) (find-doc "part-of-name-here") Source: (source

Android Studio 'tools.jar' file is not present in classpath

此生再无相见时 提交于 2019-11-28 03:19:47
I downloaded the current version of Android Studio (latest as of 4th July 2013) I also downloaded the JDK version 7u25. However, it displays error after startup: Please ensure JAVA_HOME points to JDK rather than JRE. I don't know how to solve this problem, which won't let me run the IDE. I would appreciate any help. Francois Check if java JDK is installed correctly dpkg --list | grep -i jdk if not install JDK sudo add-apt-repository ppa:webupd8team/java sudo apt-get update && sudo apt-get install oracle-jdk7-installer After the installation you have enable the jdk update-alternatives --display

working directory in sbt

笑着哭i 提交于 2019-11-28 03:10:23
问题 I would like to be able to run the java program in a specific directory. I think, that it is quite convenient to parametrize working directory, because it allows to easily manage configurations. For example in one folder you could have configuration for test, in other you could have resources needed for production. You probably think, that there is option to manipulate classpath for including/exluding resources but such solution works only if you are interested in resources stored in

Android - Command not found

喜你入骨 提交于 2019-11-28 03:08:30
I am trying to run the command in ubuntu android update project --path . However I am getting a android:command not found error. I assume this is something to do with the path which I learnt on here the other day? I was just wondering, what do variable do I need to add (Android I assume) and what do I need to point it too. Festus Tamakloe On MacOS/Linux, define the path to wherever you installed your SDK as ANDROID_HOME : MacOS $ export ANDROID_HOME=/Applications/android-sdk-macosx If you installed Android Studio , the value will need to be export ANDROID_HOME=$HOME/Library/Android/sdk Linux $

How do I include jars in a groovy script? [duplicate]

懵懂的女人 提交于 2019-11-28 03:04:24
This question already has an answer here: How do I auto load a database jar in Groovy without using the -cp switch? 4 answers I have a groovy script that needs a library in a jar. How do I add that to the classpath? I want the script to be executable so I'm using #!/usr/bin/env groovy at the top of my script. Eric Wendelin If you really have to you can also load a JAR at runtime with: this.getClass().classLoader.rootLoader.addURL(new File("file.jar").toURL()) Starting a groovy script with #!/usr/bin/env groovy has a very important limitation - No additional arguments can be added. No classpath

HttpClient NoClassDefFoundError

不羁岁月 提交于 2019-11-28 02:48:22
问题 I am trying to run a sample application from HttpClient 4.0.1. It is the file ClientMultiThreadedExecution.java from the examples section. I put in these files in the classpath: apache-mime4j-0.6.jar ; commons-codec-1.3.jar ; commons-logging-1.1.1.jar ; httpclient-4.0.1.jar ; httpcore-4.0.1.jar ; httpmime-4.0.1.jar and the file compiles correctly. At runtime I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpUriRequest

Purpose of buildscript block in Gradle

送分小仙女□ 提交于 2019-11-28 02:44:19
I am new to Gradle and I am reading the documentation but I don't understand some parts of it. One of these parts is connected with buildscript block. What is its purpose? If your build script needs to use external libraries, you can add them to the script's classpath in the build script itself. You do this using the buildscript() method, passing in a closure which declares the build script classpath. buildscript { repositories { mavenCentral() } dependencies { classpath group: 'commons-codec', name: 'commons-codec', version: '1.2' } } Ok but what is the difference with: repositories {

Getting ColdFusion-Called Web Service to Work with JavaLoader-Loaded Objects

纵饮孤独 提交于 2019-11-28 02:03:20
Is it possible to use JavaLoader to get objects returned by CF-called web services, and JavaLoader-loaded objects to be the same classpath context? I mean, without a lot of difficulty? // get a web service ws = createObject("webservice", local.lms.wsurl); // user created by coldfusion user = ws.GenerateUserObject(); /* user status created by java loader. ** this api provider requires that you move the stubs ** (generated when hitting the wsdl from CF for the first time) ** to the classpath. ** this is one of the stubs/classes that gets called from that. */ UserStatus = javaLoader.create("com

Eclipse error “Could not find or load main class”

家住魔仙堡 提交于 2019-11-28 01:49:57
I know there are many duplicates of this question, but I have looked at them all, and none of them have solved the issue. I am trying to run a class that has a main function. I have cleaned the project, checked the classpath for '.', added the bin folder to the classpath under run configurations. I'm not sure what else to try because the class is certainly in the source folder. Could someone please help me with this issue? package testIt; public class MemoryVisualizerApp extends Application{ public static void main(String[] args) { launch(args); } //Setup the scene and launch with given