change like this code Intent intent = new Intent(FirstActivity.this, SecondActivity.class); Bundle b = new Bundle(); b.putInt("key", 1); //Your id intent.putExtras(b); //Put your id to your next Intent startActivity(intent); getActivity().overridePendingTransition(R.anim.pull_in_left, R.anim.push_out_right); then receive like in newActivity Bundle b = getIntent().getExtras(); int value = b.getInt("key"); ...
private String message = getString(R.string.message); You're accessing resources too early. You cannot access resources at activity construction time e.g. when initializing member variables. You need to wait until onCreate() in the activity lifecycle. Move the getString() there. Generally, to learn what went wrong, see the exception stacktrace in logcat....
java,eclipse,swing,user-interface,nullpointerexception
MenuBar.add(MenuHelp); You are accessing the MenuBar variable without initializing it. You are missing a MenuBar = new JMenuBar (..); BTW, your code would be more readable if you use Java naming conventions (variables should start with a lower case letter)....
I'm assuming you're using PyDev. I don't know if there are other alternatives but that's what I use for Python in Eclipse. Right-click on your project folder in the Package Explorer view and select "Properties". Select "PyDev - Interpreter/Grammar" Select the appropriate Grammar Version and Interpreter, if those options contain...
It may be so simple that you haven't imported the DescriptiveStatistics class. Put this in the top of your file: import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics; ...
android,eclipse,android-notifications
Updated: The issue is that the support library wasnt updated to the latest version.
Your constructor is not correct. Rewrite it as follow public TaxReturn(double inc, int stat){ income = inc; status = stat; } By declaring type on income and status variables, you made them local to the constructor....
This is happening because your jar file is unable to find maze.txt . change String fileName = "maze.txt"; to String fileName = <absolute-path-for-maze.txt> ; and it should be through in jar ...
regex,eclipse,flex,flex4,flash-builder
Enable the regular expression option and then use the below regex. \bremoveEvent\b \b called word boundary which helps to do an exact match.. \b matches between a word charcater and non-word character, vice-versa.....
Yes this visibility property is filtering elements on server-side, so it is secured in your case. As far as i know there is only one BIRT property acting as a sort of client-side filter: this is the "General -> display" property (block | inline | No display). However for performance...
In Vim, the behavior of the arrows when the cursor is at the BOL/EOL is governed by the 'whichwrap' option which — judging by the manual — is not supported by viPlugin. What you want would be achievable with custom mappings and a bit of vimscript logic in Vim itself...
eclipse,full-text-search,pycharm
When View tool window is active (View -> Tool Windows -> Find (Alt+3)) there's Recent find usages (Ctrl+E) option in the context menu. It seems Pycharm does not remember excluded results, though.
I got similar stuff some time ago. The solution for me was to 'accept' the output of the program. Something like this: Process p = Runtime.getRuntime().exec(cmd); final InputStream is = p.getInputStream(); new Thread(new Runnable() { @Override public void run() { try { while (is.available() != 0) { is.read(); } }...
I removed Previous version of ADT first and then installed that. This problem was resolved.
android,eclipse,android-studio
There is no notion of opening and closing a module in Android Studio. There should be no need to do it. You seem to be treating an Android Studio project as being the equivalent of an Eclipse workspace, and IMHO that is not a valid comparison....
The problem seems to be specific to when you're using a custom theme like Dark (does not happen with the default theme). I am able to reproduce it with Luna also, but it seems to be fixed in the Mars version (4.5) which is due to release on Wednesday (June...
Based on documentation all methods in Response are static. Your IDE does recognize the Object, but it has no instanse method, so Eclipse will not suggest anything more than the nested classes. EDIT: I've found another JavaDoc for Jersey. Looks like it talks about slightly different (newer?) version of this...
eclipse,jenkins,eclipse-plugin,coding-style,build-automation
You can run static code checks and their corresponding eclipse plug-ins to enforce comments being made in code. For e.g. in CheckStyle javadoc can be enforced http://checkstyle.sourceforge.net/config_javadoc.html Also checkstyle can be easily integrated with Jenkins. You can also use eclipse java compiler settings for javadoc check. Go to preferences->java->compiler->javadoc to...
eclipse,amazon-web-services,amazon-ec2,amazon-rds
Okay, per the comments on the question, I'm going to give an answer that works around the question. In other words, the straightforward answer is to do an insecure thing (open the database to public). Here's the TLDR on the answer: create a tunnel to an ec2 instance, then tell...
python,eclipse,resources,liclipse
This is probably the Run Configuration for the project. Look in 'Run > Run Configurations' for your project and check the variables....
java,eclipse,amazon-web-services,compilation,aspectj
It seems that your Eclipse doesn't found the library of aspectj. Try to download it again from: https://eclipse.org/aspectj/downloads.php By your stack trace I suppose that the version of aspectj that it is looking for it's the 1.6 so I suppose that you have to search the package in which puts...
java,eclipse,email,selenium,facebook-login
Since its opening in a different popup you need to first switch to that window (popup) before doing any operation. Try to first get the window object of the popup and then Switch to the window the try to write the email. Below code will help to find the window....
looks like JAVA_HOME is set to the java 7 one, will this require a restart? You're actually executing eclipse with Java 7, you can update JAVA_HOME to point to Java 8, and then restart eclipse (not your computer)....
You need to catch if the user presses something like "no": boolean someBool = true; .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { someBool = false; } }); do{ some code }while(someBool); You can set a boolean if the user presses "no" to false and check inside...
eclipse,spring-roo,spring-tool-suite
As you can see here, current version of Spring IDE Roo Support plugin has no support to load Spring Roo version higher than 1.2.1. This is already fixed in new plugin version that will be released with STS 3.7.0 which is scheduled for end of June/early July. Until that, you...
This happens when you source code is out of sync with class files that are being executed in the VM. To correct this Do a clean build. Deploy your changes (i.e. make sure the class file you built are copied to the execution environment). Re-start your debug session. The debug...
android,eclipse,android-fragments,android-tabs,oncreate
From Android Documentation about FragmentPagerAdapter : This version of the pager is best for use when there are a handful of typically more static fragments to be paged through, such as a set of tabs. The fragment of each page the user visits will be kept in memory, though its...
Workspace-wide encoding is configured here (Windows -> Preferences -> General -> Workspace): If it is not working as expected, the project probably overrides the settings (Right click on project -> Properties -> Resources): ...
So the problem here is that MYBRANCH is set up to track origin/master, which means that when you do a git pull, origin/master will be merged into it. You can untrack it by doing git config --unset branch.MYBRANCH.merge. Assuming there is an origin/MYBRANCH, you can track it by doing git...
The problem is the difference between you input name and the setter of UserData, please try to modify the index.html as: <form action="saveName.jsp" method="post"> What is your name? <input type="text" name="userName" size="20"> <br> What is your email address? <input type="text" name="userEmail" size="20"> <br> What is your age? <input type="text" name="userAge"...
Try adb logcat from the console or cmd, which will give you all the logs of the device. Here's a small tutorial: http://forum.xda-developers.com/showthread.php?t=1726238 and official docs: http://developer.android.com/tools/help/logcat.html If your device is rooted, you can also try this one: https://play.google.com/store/apps/details?id=com.nolanlawson.logcat...
java,android,eclipse,debugging
I step through the code as the application is running on the Android device but the exception occurs in code that is not part of the application As you've done, step through your application code line by line in a debugger, until you get to the last line which...
After checking the environment variables inside the GNUStep, I made the Objective-C code working directly with eclipse without launching the MSYS terminal Download and install GNUStep from http://www.gnustep.org/windows/installer.html Download and install Eclipse Luna for C/C++ https://eclipse.org/downloads/ After installation You can launch GNUStep Shell and execute "set > paths.txt" This paths.txt...
As @Marvin mentioned in the comments above, Eclipse Juno is not compatible with JDK 1.8. It might be a bug that Eclipse interprets JDK 1.8 as 1.4, but I suspect you can work around it by either removing the 1.8 from your list of installed JREs or updating to a...
java,android,eclipse,e-commerce,braintree
This is only an issue in 1.6.1 and 1.6.0 with the full jar. A new optional dependency was added in these versions and the full jar picks it up and compiles it in. For now you can use 1.5.1 and a future release will not include Google Play Services in...
In your MainActivity.java at line no 34 you are trying to initialize some widget that is not present in your xml layout which you have set it in your setContentView(R.layout.... That;s why you are geting nullpointerexception. EDIT: change your setContentView(R.layout.activity_main) to setContentView(R.layout.fragment_main)...
That's because the file is inside the JAR and is no longer accessible on the file system - using a FileInputStream is still using files. You need to treat it as a resource instead and get an InputStream from that, then it will work both when packaged as a JAR...
That's not how Codename One works. JSP code will run on the server unrelated to Codename One, the xcode project won't work with Codename One. You will need to write the mobile code from scratch....
eclipse,eclipse-plugin,ide,contextmenu,project-explorer
As has been mentioned in NewActionProvider.java there is no menugroupid to accomodate "My Project Wizard" in the "Project..." Group :(. /** * Adds a submenu to the given menu with the name "group.new" see * {@link ICommonMenuConstants#GROUP_NEW}). The submenu contains the following structure: * * <ul> * <li>a new generic...
Most of the icons seem to be stored under \eclipse\configuration\org.eclipse.osgi\bundles\684\1.cp\icons AND in other folders of \eclipse\configuration\org.eclipse.osgi\bundles. I don't know if the license of Eclipse allows you to change that just check that out, and if you can, you can either change/create them yourself or you can search for icon packs...
java,eclipse,maven,dependency-management,osgi-bundle
You will need to also install bundles that export these packages into your target platform.
Change: #include "arm_neon.h" to: #include <arm_neon.h> Watch out for this in future - often <> and "" are interchangeable, but in some cases it can make an important difference. Always use <> for system headers and "" for user headers....
java,android,eclipse,sdk,versions
There shouldn't be any problem if you use the latest SDK version ; actually, this is recommended. However, make sure to set the correct "Target SDK", i.e. the highest android version you have successfully tested your app with, and the "Minimum Required SDK" as well....
Well, pip install should work for PyDev (it should automatically recognize the dependency)... I.e.: in your use case, the only folder that should be in the PYTHONPATH is D:\apps\Python34\lib\site-packages (and pip should install packages to that folder -- make sure you don't add extra folders for "D:\apps\Python34\lib\site-packages\django" nor anything else...
((?!</table>).)* would checks for that particular character going to be matched must not be a starting character in the string </table>. If yes, then only it matches that particular character. * repeats the same zero or more times. (.(?!</table>))* matches any character only if it's not followed by </table>, zero...
android,eclipse,android-studio,android-gradle,packages
My problem was that I was looking at the wrong build.gradle file and didn't see the application id value. Once I found the correct file (thanks to @ianhanniballake) I changed the application id and it worked.
<LinearLayout android:orientation=horizontal android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:orientation=horizontal android:layout_width="0" android:weight="50" android:layout_height="match_parent"> <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="75dp" android:gravity="center" android:text="Button" /> </LinearLayout> <LinearLayout android:orientation=horizontal android:layout_width="0"...
java,eclipse,ssl,https,digital-certificate
If importing to keystore not resolving your issue.. as i was not able to resolve it. Then add following line of code. It worked for me. System.setProperty( "javax.net.ssl.keyStore", "D:\\G2B.p12" ); // The path to the .p12 file System.setProperty( "javax.net.ssl.keyStorePassword", "****" ); // The password of the p12 file System.setProperty( "javax.net.ssl.keyStoreType",...
You want to make your program look like that? With tabs? If that's the case, use a tabbed pane. link: https://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html...
eclipse,scala,maven,intellij-idea,sbt
It should work out of box for dependencies, which are imported to the project as modules, no additional settings needed. At least for Java. Just do not run a Maven goal, that would use dependencies from the repository. ...
java,eclipse,maven,maven-plugin
Check with that below dependency is it present or not ?? <dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.0-m01</version> </dependency> ...
You're writing code that looks ambiguous: "aString" + anInt + anotherInt + "anotherString" Java is interpreting this to mean the equivalent of: ("aString" + anInt) + anotherInt + "anotherString" so that each int is converted to a String before being added, but you wanted to do the equivalent of: "aString"...
java,eclipse,tomcat,servlets,port
Find out which tomcat installation eclipse is using. Under your tomcat installation there is a conf/server.xml file. You add a new HTTP connector for the port you desire there and restart tomcat. Now you have tomcat listening to the extra port you added. <Connector port="4121" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />...
java,eclipse,pattern-matching,dsl,xtext
There is a flag that you can configure in the mwe2 workflow. Replace the XtextAntlrGeneratorFragment by the org.eclipse.xtext.generator.parser.antlr.ex.rt.AntlrGeneratorFragment and pass options = { ignoreCase = true }. Same for the XtextAntlrUiGeneratorFragment and the org.eclipse.xtext.generator.parser.antlr.ex.ca.ContentAssistParserGeneratorFragment
Taken from here: https://tomcat.apache.org/tomcat-7.0-doc/config/http.html connectionTimeout The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be presented. Use a value of -1 to indicate no (i.e. infinite) timeout. The default value is 60000 (i.e. 60 seconds) but note that the standard server.xml...
java,eclipse,jsp,properties-file
You can put this propertie file within your java package for example com/test and use following: getClass().getResourceAsStream( "com/test/myfile.propertie"); Hope it helps....
eclipse,video,javafx,jframe,mp4
I am not sure to understand your problem but in order to create a new frame in JavaFX. You have to create a new class with a new stage. Let's say you create a new class "newFrame" with the code below. public void show(Stage stage){ //define your root double width...
java,eclipse,exception,bufferedreader,try-catch-finally
Both code examples should have compiler errors complaining about an unhandled IOException. Eclipse shows these as errors in both code examples for me. The reason is that the close method throws an IOException, a checked exception, when called in the finally block, which is outside a try block. The fix...
java,eclipse,web-services,restful-url,rest-client
Try setting your company's proxy using: System.getProperties().put("https.proxyHost", "proxyHost"); System.getProperties().put("https.proxyPort", "proxyPort"); Similarly for http....
eclipse,playframework,sbt,playframework-2.4
Version 4.0.0 is not yet available. Use RC2: addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0-RC2")...
I am not sure if I understand correctly. What do you mean by "local storm project"? Do you execute using LocalCluster? In this case, you need to create a file "logback.xml" and put you logger configuration there. logback.xml must be in your classpath, ie, you can put it into "src"...
java,eclipse,jbutton,jcheckbox
Assuming that you have a JButton called button and you set it by default to be disabled, and also you have JCheckBox called chbox you can use the following code to enable this functionality: chbox.addItemListener(new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { button.setEnabled(e.getStateChange() == ItemEvent.SELECTED); } }); Edit: You...
eclipse,java-8,nullable,optional
JDT's null analysis cannot know about the semantics of each and every method in JRE and other libraries. Therefore, no conclusions are drawn from seeing a call to ifPresent. This can be remedied by adding external annotations to Optional so that the analysis will see method ofNullable as <T> Optional<@NonNull...
eclipse,tomcat,openshift,remote-debugging
You should read through the Developer Portal's pages on Port Forwarding (https://developers.openshift.com/en/managing-port-forwarding.html) to make sure that you are using it correctly. You will want to connect to your local loopback address: 127.0.0.1 along with the correct forwarded port once you have run the port-forwarding command.
The error log which you posted says the following: java.lang.ClassNotFoundException com.jadex.qna.QNAProject.App So it clear what the root source of the error is. You are trying to execute the main() method of a class whose class file Maven cannot find. As this SO article discusses, you can try explicitly compiling first,...
to run as scala application, you need to create Scala App and not class In eclipse, package explorer select project/src/package right click new>scala app inform Name e.g. Test and click "finish" select Test.scala right click "run as Scala Application" see results in console window....
java,eclipse,eclipse-plugin,dsl,xtext
You should implement a data type rule in order to achieve the desired behavior. Sebastian wrote an excellent blog post on this topic which can be found here: http://zarnekow.blogspot.de/2012/11/xtext-corner-6-data-types-terminals-why.html Here is a minimal example of a grammar: grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals generate myDsl "http://www.xtext.org/example/mydsl/MyDsl" Model: greetings+=Greeting*; Greeting: 'Example' ':' comment=Comment;...
Change = to == in all the control flow statements. = is used for assignment and == is used for boolean comparison on integral types.
In Java, you cannot write executable statements directly in class.So this is syntactically wrong: for(int i=0; i<10; i++) { this.colorList[i] = this.allColors[this.r.nextInt(this.allColors.length)]; } Executable statements can only be in methods/constructors/code blocks...
Try to delete the comment // @WebServlet("/hello"), and put @WebServlet("/hello"). Stop the server, refresh and if its necessary clean it. And re - launch again. And take a look if the web.xml the welcome file list is correctly, because is the file which launch always.
For a plug-in project, all of its dependencies have to be from other plug-ins and declared using its MANIFEST.MF file. Being packaged in a .jar has nothing to do with it. At runtime, the stated dependencies are wired by Equinox. At development time, PDE uses your MANIFEST.MF to set up...
Your assumption is right. The plug-in with the id org.eclipse.swt is indeed the version of SWT that runs Eclipse.
eclipse,plugins,eclipse-plugin,kepler
You can temporarily disable a plugin simply by moving its directory out of Eclipse's plugins directory. In Eclipse, if you select Help | About | Installation Details | Plugins, the list of plugins has 2 columns 'Version' and 'Plug in Id'. The corresponding plugin subdirectory will have the format id_version....
java,eclipse,user-interface,testing,uispec4j
just for fun. you can remove "extends UISpecTestCase" in your class and give it a try see if it works or not :) Junit 4.X should support annotation well and I didn't see any reason you need to extends UISpecTestCase....
You can send the string using Bundle Intent i=new Intent(A.this, B.class); Bundle b = new Bundle(); b.putString("name", sub6.getText().toString()); i.putExtras(b); startActivity(i); and in the receiving activity: Bundle extras = getIntent().getExtras(); String text = extras.getString("name"); ...
A work-around for the lack of variable-length lookbehind is available in situations when your strings have a relatively small fixed upper limit on their length. For example, if you know that strings are at most 100 characters long, you could use {0,100} in place of * or {1,100} in place...
java,android,xml,eclipse,networking
First of all, you need to run your network request in a separate thread like an AsyncTask, like @Jones said, try to create a class extending AsyncTask and then in doInBackground() put your getLocs() method. Don't forget to add the INTERNET permission to your Manifest.
java,eclipse,exception,exception-handling,try-catch
The issue is caused by the lambda function. The interface of the function that forEach requires doesn't declare any kind of checked exceptions: take a look at java.util.function.Consumer. That's the place where the first issue occurs, the second one is simply a result of the first one. Either you should...
That example creates and then deletes the data so that is one reason why your graph is empty. Another observation is your DB_PATH. If you've set DB_PATH='data/graph.db', then that path is relative to your project path. If your code is located in /projects/example then this embedded database should be created...
android,eclipse,tabs,fragmentpageradapter
You can't. You can set your number of "pre-cache" tabs in your View Pager viewPager.setOffscreenPageLimit(3); But the minimum number to load is one back and forward, the equivalent: viewPager.setOffscreenPageLimit(1); In order to be able to swipe....
java,eclipse,eclipse-plugin,ivy,ivyde
With the project, you can get all the class path entries. I went through and excludes the ivy entries. Then I re-added them with the correct class path and property files. Now, the paths do not include ${ivyproject_loc} and ${project_loc}. Here is the code: protected void changeIvyClasspath(IProject project, IProgressMonitor monitor)...
You are using android:theme="@android:style/Theme.Light" as the theme of your application. Since your styles.xml has <style name="AppBaseTheme" parent="Theme.AppCompat.Light"> <!-- Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. --> </style> You should be using AppBaseTheme as your theme in your manifest....
eclipse,plugins,eclipse-plugin
These dialogs don't support customization. Open Resource is OpenResourceDialog (an internal class) derived from FilteredResourcesSelectionDialog. Open Type is OpenTypeSelectionDialog (again internal) derived from another internal class FilteredTypesSelectionDialog which in turn is derived from FilteredItemsSelectionDialog. ...
To show app in fullscreen use: getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); To remove it use: getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); ...
From the screenshot you have given, I can see the concerned element is in an iframe. (Check the second bar in the developer tools below the bar containing: Inspector, Console,etc. You will note the iframe#iframe_1434526152814_57_7. ). Hence, you weren't able to send the path to it. In order to send...
Having installed Eclipse classic (or any other version of Eclipse, for this matter), you can then install the PyDev module. (There are many online tutorials telling you how to do this. And the documentation can be found there: http://pydev.org/manual_101_install.html) If you're looking for an IDE for Python, PyCharm is also...
java,eclipse,spring,spring-mvc
you will extract zip file and go to inside folder in templete.zip is import succesully into eclipse IDE.i have tested.
javascript,android,json,eclipse,dojo
Why use dojo? You can use javascript and HTML5
The problem in here is that you are appending a /, when you are already using a ClassLoader's getResource(). You should never use a / at the beginning of a ClassLoader path is because all ClassLoader paths are absolute. You can definitely use Class's getResource() with a URL which starts...