Latest questions in Java

0 votes
1 answer

Error:Maven Unable to locate the Javac Compiler in:

Hello @kartik, Go to Window -> Preferences... -> ...READ MORE

1 day ago in Java by Niroj
• 23,750 points
21 views
0 votes
1 answer

How to run a .java file from command line passing arguments in Maven?

Hello @kartik, You could run: mvn exec:exec -Dexec.args="arg1". This will ...READ MORE

1 day ago in Java by Niroj
• 23,750 points
28 views
0 votes
1 answer

How to install Maven artifact with sources from command line?

Hello @kartik, To download sources for your dependencies: mvn ...READ MORE

1 day ago in Java by Niroj
• 23,750 points
23 views
0 votes
1 answer

Error:jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

Hello @kartik, The servlet API .jar file must ...READ MORE

1 day ago in Java by Niroj
• 23,750 points
29 views
0 votes
1 answer

How do I configure Maven for offline development?

Hello @kartik, You have two options for this: 1.) ...READ MORE

1 day ago in Java by Niroj
• 23,750 points
19 views
0 votes
1 answer

Error:java.lang.OutOfMemoryError: Java heap space in Maven

Hello @kartik, Here is the whole config that ...READ MORE

1 day ago in Java by Niroj
• 23,750 points
13 views
0 votes
1 answer

Error:“java.lang.OutOfMemoryError: PermGen space” in Maven build

Hello @kartik, When you increased MAVEN_OPTS, you increase the MaxPermSize, ...READ MORE

1 day ago in Java by Niroj
• 23,750 points
10 views
0 votes
1 answer

Error:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

Hello @kartik, Include servlet-api-3.1.jar in your dependencies. Maven <dependency> ...READ MORE

1 day ago in Java by Niroj
• 23,750 points
16 views
0 votes
1 answer

How to configure encoding in Maven?

Hello @kartik, I use some reporting plugins. In ...READ MORE

2 days ago in Java by Niroj
• 23,750 points
13 views
0 votes
1 answer

Can edureka has portals to teach ?

Hi, @Dhanush, Regarding your query, I would suggest you ...READ MORE

3 days ago in Java by Gitika
• 29,690 points
19 views
0 votes
1 answer

Error: setOnItemClickListener cannot be used with a spinner

Hello @kartik, See the first line of your ...READ MORE

4 days ago in Java by Niroj
• 23,750 points
22 views
0 votes
1 answer

Error: 'android.os.NetworkOnMainThreadException'?

Hello, I solved this problem using a new Thread. Thread ...READ MORE

May 28 in Java by Niroj
• 23,750 points
43 views
0 votes
1 answer

How to get the current working directory in Java?

Hello, Using java.nio.file.Path and java.nio.file.Paths, you can do the following to ...READ MORE

May 28 in Java by Niroj
• 23,750 points
52 views
0 votes
1 answer

How can I create an executable JAR with dependencies using Maven?

Hello @kartik, You can use the dependency-plugin to ...READ MORE

May 28 in Java by Niroj
• 23,750 points
60 views
0 votes
1 answer

What is a serialVersionUID and why should we use it?

Hello @kartik, SerialVersionUID is a unique identifier for each ...READ MORE

May 28 in Java by Niroj
• 23,750 points
39 views
0 votes
1 answer

Android Studio Gradle project “Unable to start the daemon process /initialization of VM”

Hello, The Solution Worked: 1.Open the projects gradle.properties file in android ...READ MORE

May 26 in Java by Niroj
• 23,750 points
84 views
0 votes
1 answer

Gradle - Error Could not find method implementation() for arguments

Hello @kartik, Make sure your gradle version 3.. or ...READ MORE

May 26 in Java by Niroj
• 23,750 points
42 views
0 votes
1 answer

How to parse JSON Array in Android?

Hello @kartik, use the following snippet to parse ...READ MORE

May 26 in Java by Niroj
• 23,750 points
25 views
0 votes
1 answer

How can one detect airplane mode on Android?

Hello, When registering the Airplane Mode BroadcastReceiver (@saxos answer) I ...READ MORE

May 26 in Java by Niroj
• 23,750 points
18 views
0 votes
1 answer

IllegalArgumentException: navigation destination xxx is unknown to this NavController

Hello @kartik, Check currentDestination before calling navigate might be helpful. For ...READ MORE

May 26 in Java by Niroj
• 23,750 points
36 views
0 votes
1 answer

How to import android project as library and NOT compile it as apk?

Hello, In projLib's build.gradle file, you'll see a statement ...READ MORE

May 26 in Java by Niroj
• 23,750 points
17 views
0 votes
1 answer

How to get a context in a recycler view adapter?

Hii, You can add global variable: private Context context; then ...READ MORE

May 26 in Java by Niroj
• 23,750 points
23 views
0 votes
1 answer

Error: getExtractedText on inactive InputConnection warning on android

Hello @kartik, The warning appeared when the soft ...READ MORE

May 26 in Java by Niroj
• 23,750 points
24 views
0 votes
1 answer

What is the equivalent to a JavaScript setInterval/setTimeout in Android/Java?

Hii @kartik, As always with Android there's lots ...READ MORE

May 26 in Java by Niroj
• 23,750 points
22 views
0 votes
1 answer

Error:Unable to execute dex: Multiple dex files define

Hello @kartik, The Solution for me was just ...READ MORE

May 25 in Java by Niroj
• 23,750 points
16 views
0 votes
1 answer

How to unzip files programmatically in Android?

Hello @kartik, This is my unzip method, which ...READ MORE

May 25 in Java by Niroj
• 23,750 points
31 views
0 votes
1 answer

How to launch Google Maps Directions via an intent on Android?

Hello @kartik, If you are interested in showing the ...READ MORE

May 25 in Java by Niroj
• 23,750 points
34 views
0 votes
1 answer

How to make an Android device vibrate?

Hello @kartik, Try: import android.os.Vibrator; Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); // ...READ MORE

May 25 in Java by Niroj
• 23,750 points
19 views
0 votes
1 answer

Error:Android SDK installation doesn't find JDK

Hii @kartik, It appears as if whoever posted ...READ MORE

May 25 in Java by Niroj
• 23,750 points
22 views
0 votes
1 answer

How to use proper use cases for Android UserManager.isUserAGoat()?

Hello @kartik, From their source, the method used to ...READ MORE

May 25 in Java by Niroj
• 23,750 points
25 views
0 votes
1 answer

How to set base url for rest in spring boot?

Hello @kartik, Set it up in your application.yml ...READ MORE

May 22 in Java by Niroj
• 23,750 points
57 views
0 votes
1 answer

How to redirect to an external URL from controller action in Spring MVC?

Hello @kartik, You can do it with two ...READ MORE

May 22 in Java by Niroj
• 23,750 points
102 views
0 votes
1 answer

Error:No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call

Hii @kartik, If you have @Transactional // Spring Transactional class ...READ MORE

May 22 in Java by Niroj
• 23,750 points
68 views
0 votes
1 answer

How to log SQL statements in Spring Boot?

Hello @kartik, If you hava a logback-spring.xml or ...READ MORE

May 22 in Java by Niroj
• 23,750 points
41 views
0 votes
1 answer

How to configure port for a Spring Boot application?

Hello @kartik, You can set port in java ...READ MORE

May 22 in Java by Niroj
• 23,750 points
39 views
0 votes
1 answer

How to determine programmatically the current active profile using Spring boot ?

Hello, It doesn't matter is your app Boot ...READ MORE

May 21 in Java by Niroj
• 23,750 points
31 views
0 votes
1 answer

Error: Could not create the Java Virtual Machine Mac OSX Mavericks

Hello @kartik, Normally this error occurs when you ...READ MORE

May 21 in Java by Niroj
• 23,750 points
50 views
0 votes
1 answer

Error:javax.net.ssl.SSLHandshakeException Error?

Hello @kartik, First, you need to obtain the ...READ MORE

May 21 in Java by Niroj
• 23,750 points
61 views
0 votes
1 answer

How to convert .imm imacro file to php/java to run on web hosting

Hello, You can try the sample code below: iimPlay("Test.iim") When ...READ MORE

May 13 in Java by Niroj
• 23,750 points
124 views
0 votes
1 answer

how to read csv file form sftp connection and store into string object in java code and convert into json.....post it using rest api

Hey, @Pooja, Before starting with anything you should ...READ MORE

May 12 in Java by Roshni
• 600 points
113 views
0 votes
0 answers

I cannot build and sync my gradle in androidstudio.

how to build and sync my gradle ...READ MORE

May 8 in Java by Edureka
• 120 points
92 views
0 votes
1 answer

How to Embedding Gecko/WebKit in Java?

Hii, If SWT is an option, you can ...READ MORE

May 7 in Java by Niroj
• 23,750 points
99 views
0 votes
1 answer

How to include SQLite database in executable Jar?

Hello @kartik, I have found two different ways ...READ MORE

May 7 in Java by Niroj
• 23,750 points
77 views
0 votes
1 answer

How do I make a list with checkboxes in Java Swing?

Hii @kartik, Create a custom ListCellRenderer and asign it to ...READ MORE

May 7 in Java by Niroj
• 23,750 points
58 views
0 votes
1 answer

How to get the windows native look in Java GUI programming?

Hello Kartik,  You can try the syntax: UIManager.setLookAndFeel(PLAF); (Pluggable ...READ MORE

May 7 in Java by Niroj
• 23,750 points
30 views
0 votes
1 answer

How to set JFrame to appear centered, regardless of monitor resolution?

Hello kartik, You can  always did it in ...READ MORE

May 7 in Java by Niroj
• 23,750 points
21 views
0 votes
1 answer

How to get comments by given user in Facebook Graph API? Can we get list of comments made by given user?

Hii kartik, You can get the list of ...READ MORE

May 7 in Java by Niroj
• 23,750 points
68 views
0 votes
1 answer

Reading data from excel , few cell values have double quotes. How to include the double quotes while reading

Hi, @Jyra, You can use one Java function ...READ MORE

May 7 in Java by Gitika
• 29,690 points
38 views
0 votes
1 answer

Write a method

Hey, @MIH, You can follow this: public class ReverseNumber ...READ MORE

14 hours ago in Java by Gitika
• 29,690 points
57 views