launcher

Error running second Activity: The activity must be exported or contain an intent-filter

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I cant seem to launch my application. It gives me an error like this: "Error running second Activity: The activity must be exported or contain an intent-filter". Is there anything wrong with my manifest? <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="sg.edu.rp.g913.mymakeuppouch"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name="

Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I know there have been many posts regarding this exception, but I am not able to fix this issue. Classpath has to be edited I think to resolve it. I am trying to run a program called DistMap in hadoop infrastructure. This is the error I am getting. Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.PlatformName at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass

Spring Maven clean error - The requested profile “pom.xml” could not be activated because it does not exist

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to build a Spring-Boot *.war with maven, but I keep getting: [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.600 s [INFO] Finished at: 2015-01-28T10:46:11-03:00 [INFO] Final Memory: 6M/123M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "pom.xml" could not be activated because it does not exist. After running the

Windows exe launcher for Java app with JRE check

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to distribute a Java application and I want an installer to install it in all cases. I need to create an *.exe launcher that will check the installed JREs and if the required JRE isn't installed, show a window with a proper link. if required JRE is installed, launch the properly executable jar file. 回答1: I'm pretty happy with WinRun4J: http://winrun4j.sourceforge.net/ It's under active development and some improvements I suggested were quickly implemented. The only thing that is currently lacking (from my point of view) is to specify

Error:Execution failed for task &#039;:app:compileDebugKotlin&#039;. &gt; Compilation error. See log for more details

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details build:gradle(Module:app) buildscript { repositories { maven { url 'https://jitpack.io' url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'io.fabric' apply plugin: 'kotlin-android-extensions' repositories { maven { url 'https://maven.fabric.io/public' } mavenCentral() } android { compileSdkVersion 25

eclipse with Android sdk, ERROR: Java heap space

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So lately I'm having a problem while working in my apps inside eclipse the next message shows up while working with xml files: ERROR: 'Java heap space' I have read an try increasing inside the eclipse.ini file the: -vmargs -Xmx40m -Xmx512m to: -vmargs -Xmx512m -Xmx1024m but it will work for a while than after and hour or so it will give me the same error, I'm working in a MacBook air with 4gb ram. I have Eclipse SDK Version: 3.7.2 Build id: M20120208-0800 and I just updated it, so I don't know if that is why is acting up this way, this is

Eclipse will not open due to environment variables [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: Eclipse - no Java (JRE) / (JDK) … no virtual machine 33 answers I just rebooted my computer without changing anything. Suddenly I can't open eclipse. Instead, I get this error message: TinyPic image of JRE error dialog http://i46.tinypic.com/34rd4as.gif And I see all my environment variables have been erased. Java , javac , mvn obviously don't work. What do I do now, how do I fix this ? For those unfortunate souls who can't get to tinypic.com from work :-) ┌―――――――――――――――――――――――――――――――――――――――――――

Running daemon with exec-maven-plugin avoiding `IllegalThreadStateException`

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to run a daemon thread which should start on maven package phase. This is what I have in pom.xml: org.codehaus.mojo exec-maven-plugin 1.2.1 package java com.test.Startup true And here is the content of the class Startup: public class Startup { public static class Testing extends Thread { @Override public void run() { while(true) { System.out.println("testing.."); } } } public static void main(String[] list) throws Exception { Testing t = new Testing(); t.setDaemon(true); t.start(); } } The thread starts to run but the compile

How to add a widget to the Android home screen from my app?

匿名 (未验证) 提交于 2019-12-03 01:55:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm writing an application which should be able to add widgets (just text boxes) to the home screen of the user's phone when the user instructs my app to do so. How can I do such a thing? I know that I can add an app widget but how about adding more? 回答1: It is not possible from a app to place a widget in the home screen. Only the home screen can add app widgets to the home screen. similar links link1 , link2 , link3 But you can offer user to pick widget from widgetpicker. Intent pickIntent = new Intent(AppWidgetManager.ACTION_APPWIDGET_PICK

Cannot get the System Java Compiler. Please use a JDK, not a JRE

匿名 (未验证) 提交于 2019-12-03 01:55:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting Cannot get the System Java Compiler. Please use a JDK, not a JRE. when jsp file are in the my project and I deploy my it to Google App Engine. So I tried the following to fix the problem: Add -vm C:\Program Files\Java\jdk1.6.0_43\bin\javaw.exe to my eclipse.ini. Ensure that the JDK is in my project's build path and not the jre. Add the C:\Program Files\Java\jdk1.6.0_43\bin\ to the PATH for Environment Variable. But none of these solved the problem. How can I solve this? 回答1: When adding -vm C:\Program Files\Java\jdk1.6.0_43\bin