jar

flutter app: A problem occurred configuring root project 'android'

。_饼干妹妹 提交于 2020-04-16 08:20:50
问题 I have install windows 10 64 bit and Android studio 64 bit. Making android apps work great. Everything is OK. I have install Flutter SDK. This is result of "flutter doctor -v" : [√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.535], locale en-US) • Flutter version 1.12.13+hotfix.8 at C:\flutter • Framework revision 0b8abb4724 (6 weeks ago), 2020-02-11 11:44:36 -0800 • Engine revision e1e6ced81d • Dart version 2.7.0 [√] Android toolchain - develop for

Why does my jar file not not contain any class files?

旧街凉风 提交于 2020-04-11 04:35:49
问题 I'm trying to add a task ( gen or gen2 ) to my build.gradle that does exactly the same as the Jar -task: version = "0.0.1" apply plugin: 'java' task('gen', type: Jar) { } task gen2(type: Jar) Running gradle jar generates a JAR-file that contains .class -files, while running gradle gen or gradle gen2 generate a JAR-file that does NOT contain any .class -files. Whats wrong with my class definition? 回答1: To build a jar with all the classes from main, as a default jar task would, do this: task

ivyDE Eclipse插件使用 tomcat部署工程

亡梦爱人 提交于 2020-04-10 11:31:56
1、配置 ant 和 ivy $ brew ant $ brew ivy 然后把 /usr/local/Cellar/ivy/2.3.0/libexec/ivy-2.3.0.jar 复制放到 /usr/local/Cellar/ant/1.9.3/libexec/lib 路径下 2、测试 $ svn checkout https://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/example/hello-ivy $ cd hello-ivy $ ant 一切正常 3、安装ivyDE 打开Eclipse Marketplace 搜索ivyDE,然后点击安装,和其他插件安装没有区别这里就不多说了。 在工程根目录中新建ivy.xml,添加所需要的依赖 <ivy-module version="2.0"> <info organisation="org.apache" module="JFinal_CW" /> <dependencies> <dependency org="com.jfinal" name="jfinal" rev="1.6" conf="*->*,!sources,!javadoc" > <exclude module="sizeof-agent" /> <exclude module="ojdbc6" /> <

Eclipse: in the Libraries tab all buttons are disabled

守給你的承諾、 提交于 2020-04-05 06:05:53
问题 I am using Eclipse Oxygen.2 (4.7.2) and Java 9.0.4. I created a project via right-click > Build Path > Configure Build Path... > Libraries . All buttons are disabled like Add JARs , *Add External JARs..., etc.: Please help me to solve this issue. 回答1: You first have to select either Modulepath or Classpath . The Modulepath is a very new thing for Java 9 (here you can watch a short video how it can be used). It exists since the Eclipse Oxygen.1a (4.7.1a), October 11, 2017. In case of doubt, I

Eclipse: in the Libraries tab all buttons are disabled

夙愿已清 提交于 2020-04-05 06:04:41
问题 I am using Eclipse Oxygen.2 (4.7.2) and Java 9.0.4. I created a project via right-click > Build Path > Configure Build Path... > Libraries . All buttons are disabled like Add JARs , *Add External JARs..., etc.: Please help me to solve this issue. 回答1: You first have to select either Modulepath or Classpath . The Modulepath is a very new thing for Java 9 (here you can watch a short video how it can be used). It exists since the Eclipse Oxygen.1a (4.7.1a), October 11, 2017. In case of doubt, I

How to specify multiple source directory for Android library project

大城市里の小女人 提交于 2020-03-13 05:29:30
问题 I am using ant tool to build android library project, I need to specify multiple source directory . I have tried to specify multiple source directory by adding these lines alternatively in ant.properties file source.dir=src:src2 source.dir=src;src2 but unable to build in both case, in both the cases .class were generated , but while creating jar file i was getting this error BUILD FAILED C:\Program Files\Android\android-sdk\tools\ant\build.xml:681: The following error occurred while executing

Java command classpath and PHP in Linux

旧巷老猫 提交于 2020-03-06 02:35:28
问题 Hello I have a java jar files and a batch file that I want to run using the java -cp command and from PHP. My jar files are inside a folder called "jars" in my server and I'm doing as following to run them : //java.php $result = exec('java -cp "pack1.jar:pack2.jar" pack3.connect.CommandLine -rb batchfile.odlbat'); echo $result; This command is working in PHP when all my jar and batch file are in the same folder as my javacall.php file. Now I want to copy my jar and batch files to a new folder

Error when creating an executable test-jar in Maven

眉间皱痕 提交于 2020-03-05 02:56:27
问题 I'm trying to create a JAR that I can put on a non development machine and run some unit tests that exercise a web service. I've read that there are many ways to do this in maven. I'm focusing on using the test-jar goal because that seems the most logical approach. My tests are in a separate maven project with a folder structure of: /myProject/src/test/java/org/testplatform/services/test/<name of testng test>.java Here is my config for the test-jar in the pom: <plugin> <groupId>org.apache

hadoop2.5.2 运行实例 /home/hadoop/tmp due to 权限不够

自闭症网瘾萝莉.ら 提交于 2020-03-03 17:27:17
[hadoop @master ~]$ [hadoop @master ~]$ hadoop jar /opt/hadoop-2.5.2/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.5.2.jar pi 100 100 Error creating temp dir in hadoop.tmp.dir /home/hadoop/tmp due to 权限不够 [hadoop @master ~]$ 解决方法: sudo chmod a+rwx /home/hadoop/tmp 来源: oschina 链接: https://my.oschina.net/u/189445/blog/522876

Compiling multiple jar and java files using javac

六月ゝ 毕业季﹏ 提交于 2020-02-22 07:20:48
问题 I downloaded a sample code written in java that has multiple jar files and java files. I am not a Java programmer so I am having a hard time compiling the code. Here's my attempt: javac -classpath lib/*.jar src/*.java However this is what I get: javac: invalid flag: lib/dom4j-1.6.1.jar Usage: javac <options> <source files> use -help for a list of possible options What's wrong with my approach and how can I compile the code? ALl the jar files are located in the lib folder, and the java files