Click here to Skip to main content
15,891,253 members
Everything / Eclipse

Eclipse

Eclipse

Great Reads

by Jan Dolinay
Article on setting up Eclipse to build programs for Arduino Uno.
by Garvit Arya
It is a personalized web Browser that can open a certain website directly.
by Yildirim Kocdag
This article helps you develop, test and deploy a custom comment check in policy for Eclipse IDE and Microsoft TFS. A plug-in should be written for comment checkin policy development
by Intel
A Fast, Flexible, And Scalable Path To Commercial IoT Solutions

Latest Articles

by Matthew_Heusser
In this post, you will learn a bit about the various components that make up Selenium WebDriver.
by Andrea Flesca
Activiti in Action is a great book, but I had some problems in performing the two simple exercises of the first chapter due (IMHO) to the lack of some information
by James A. Brannan
Introduction AWS SQS Message Queues are a way to exchange messages between applications. Senders, send data objects to a queue and receivers, receive objects from a queue.
by James A. Brannan
Exploring AWS KMS to encrypt and decrypt data via the AWS Java 2 SDK

All Articles

Sort by Updated

Eclipse 

24 May 2023 by Omparkash
HiSir , I am new on Android platform and I have written a separate class for Sending SMS with confirmation code but when I send SMS through this then I face a problem that Your application has closed unexpectedly due to Null Pointer exception Actually I have send the sms from SettingScreen...
25 Dec 2022 by shakas11
I have to make a route calculator where, given a map of cities, the connections between them and the city of origin and destination, I am able to find a valid route. What I have tried: As much as I rack my head, I can't come to a viable...
25 Dec 2022 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
1 Nov 2022 by Mg123sd
I am working on and eclipse rcp project which is written in indigo. I had migrated it from indigo to eclipse 4.16 using compatibility layer. The migration was successfull but I am facing issue in launching the help content of the application. On...
1 Nov 2022 by Richard MacCutchan
You will most likely get faster help by going to the Eclipse website.
2 Sep 2022 by Mony2020
main.java import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { private static String[] name; ...
2 Sep 2022 by Richard MacCutchan
In your main method you have the following lines: private static String[] name; public static boolean readFile(String filename) { File file = new File("studentdata.txt"); try { Scanner scan = new...
2 Sep 2022 by OriginalGriff
That's because your teacher helpfully added markers where you need to provide code: students.add(student);`enter code here` The `enter code here` bit is not executable Java code but an instruction to you ... You should expect to get...
15 Mar 2022 by micha_eleric
first time writing a make file. i either did a one line command from command line, or just let development environment automake makefile. i am using: Eclipse IDE for C/C++ Developers Version: 2018-09 (4.9.0) Build id: 20180917-1800 OS: Linux,...
15 Mar 2022 by k5054
Probably your best bet is to use qmake instead of make. Running qmake | qmake Manual[^] The Eclipse documentation should tell you how to tell it to use qmake instead of make. Alternatively, you could generate a Makefile using qmake --makefile If...
13 Mar 2022 by Cameron Grant 2021
I am trying to work out how to implement text to speech with java 11 and have written some classes in order to read a text ("Dracula") and then and option to speak the text. Classes: package draculatext; import java.io.BufferedReader; import...
13 Mar 2022 by Richard MacCutchan
The error message is telling you that the system cannot find the VoiceManager, which suggests that it is not aware of the location of the jar file(s). Make sure that the file's location is passed to the virtual machine by adding it as follows: ...
28 Oct 2021 by micha_eleric
if (m_ser_1 == NULL) // c++ has no null // no match for ‘operator==’ (operand types are ‘QSerialPort’ and ‘long int’) { MessageBoxRed("m_ser_1 == None. must have at least one board"); return; } if (m_ser_2...
28 Oct 2021 by micha_eleric
thank you CPallini, I was think of "m_ser_1 is NOT a pointer" as a pointer, and code was treating it as a pointer, but just goes to show how sloppy python can get. Found in latter code that it was not a pointer.
26 Oct 2021 by CPallini
In C++ there is nullptr (see nullptr, the pointer literal - cppreference.com[^]. However if you reported the exact compiler message, m_ser_1 is NOT a pointer, so you can't check it against nullptr.
24 Aug 2021 by Matthew_Heusser
In this post, you will learn a bit about the various components that make up Selenium WebDriver.
15 Jul 2021 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
9 Jul 2021 by Htc Saj
I start on project with maven and spring boot.On every annotation there is red line below.I didn't import files outside neither I use spring initializer. How to fix this. import org.springframework.boot.SpringApplication; import...
9 Jul 2021 by Mr.Corona
How to add transition between videos in jcodec ? If it is not possible with jcodec can anyone suggest other libraries(with example if possible) Please.... 😁😁 What I have tried: Searched lot in google and couldn't find anything useful
9 Jul 2021 by Richard MacCutchan
Lots of information available: transition between videos in jcodec - Google Search[^]. But you do need to study it all.
24 Jun 2021 by Eerven
I can't get "result"boolean value in onPostExecute. there's way to get result value "0,1" success or not to use in OK button. There's the way?. //AsyncTask Class//protected class Check extends AsyncTask { String cc=null; @Override protected...
24 Jun 2021 by Member 15261109
You can retreive the return value of protected Boolean doInBackground() by calling the get() method of AsyncTask class : AsyncTaskClassName task = new AsyncTaskClassName(); bool result = task.execute(param1,param2......).get(); But be careful...
9 Jun 2021 by Ishmeet Kaur
When I'm trying to create a new maven project src/main/resources folder is not created in the spring tool suite? What I have tried: I tried to go to properties then build a path but was just able to get src/main/java src/main/resources still...
14 May 2021 by Member 15076657
I have been trying data from C file to java using JNI. But, when I try to pass it, the following error occurs in eclipse. # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at...
14 May 2021 by Rick York
The cause is in the message : writing address 0x0000018c That is obviously an invalid address for a pointer. There is another clue : Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j Main.service(Ljava/util/HashMap;)V+0 j ...
18 Apr 2021 by Basmala Haggag
My problem is when I run this code it should normally pop up a window, but that's not the case. can anyone help me with that please. Thank you! What I have tried: import java.awt.FlowLayout; import java.awt.event.ActionEvent; import...
6 Apr 2021 by Andrea Flesca
Activiti in Action is a great book, but I had some problems in performing the two simple exercises of the first chapter due (IMHO) to the lack of some information
5 Apr 2021 by Basmala Haggag
I am making a game using java. At the beginning of my game there is a panel with a welcome message and then by pressing start you can go to the first level in the game. My question is how to switch panels(to go from the welcome message to level...
5 Apr 2021 by Gerry Schmitz
Create a "wizard". Creating Wizard Dialogs with Java Swing[^]
4 Apr 2021 by Richard MacCutchan
See How to Use Panels (The Java™ Tutorials >Creating a GUI With JFC/Swing > Using Swing Components)[^]
23 Feb 2021 by Mal Beastin
This problem is composed of two parts. 1a. Enforce the precondition for the splitBil(); 1b. Enforce the precondition for the calculateMonthlyTakehomePay(); Here is the code: * @precondition: amount > 0 AND tipRate >= 0 AND numDiners >= 1 *...
23 Feb 2021 by Gerry Schmitz
Those "validations" should be done during the "input" phase; not when you're calculating; that's why it's a mess. You're letting "garbage in".
7 Feb 2021 by Mr.Corona
First open windowbuilder and then choose grouped layout.
4 Feb 2021 by Mr.Corona
I am new to eclipse and use windowbuilder. I saw in YouTube that we can auto resize Buttons by when we select then I arrow will come and when it is clicked a option will come to enable auto resize. But in my eclipse that icon is not coming. What...
2 Feb 2021 by Mr.Corona
I am very new to Java and JavaFX. I have downloaded JavaFX Scene Builder and when trying to create a fxml project by File > New > Other > JavaFX > New Fxml Document, It open a dialog box and when I entered the details and clicked the Finish...
2 Feb 2021 by Richard MacCutchan
See Getting Started with JavaFX: Using FXML to Create a User Interface | JavaFX 2 Tutorials and Documentation[^]
13 Jan 2021 by Mr.Corona
I have made a small script for taking text from jtextfiled and save to a variable and print it in eclipse. But it is not getting print. Here is my code.- package not; import javax.swing.*; public class Not { public static void main(String...
13 Jan 2021 by Richard MacCutchan
See my suggested solution to your previous question at Java program ideas..[^]. There really is no substitute, or short cut, to actually learning the language and framework. The tutorials contain working samples that demonstrate, and explain, how...
12 Jan 2021 by Richard Deeming
There is literally nothing to print, because you haven't set any text, and you haven't given the user the opportunity to enter any text. Even if you moved the line that retrieves the text after the line that adds the text field to the frame, it...
10 Jan 2021 by Mr.Corona
Hello Every body I am new to java and I have learnt it much. So I want to develop a program which is useful. Can Any of you give Ideas. Please 😁😀 What I have tried: I have tried making calculator, image editor, chat application etc.
10 Jan 2021 by Richard MacCutchan
Work through The Java™ Tutorials[^] and you will find lots of ideas.
10 Jan 2021 by Sandeep Mewara
Okay. You can try to make a stock app that keeps updating the latest price and show with indicators red/green on how they are fairing for the day. :thumbsup:
10 Dec 2020 by lelouch_vi 2
Hello I'm trying to use the JOptionPane here to send a warning to the user that he needs to enter a valid input in correct format, but the JOptionPane is not showing when I entered a wrong input. I don't know what is my mistake. boolean...
1 Dec 2020 by Member 15009354
I am trying to read the signal given by an LM35 temperature sensor, to digitize it I have to use an ADC0831 that gives me an 8-bit serial output, I use a Cyclone II FPGA, they told me that I should parallelize that output and that it was done by...
10 Nov 2020 by Richard MacCutchan
The first thing you need to do with your input is read each line and split it into the different fields: department, item, date, price. So you could start by writing the code to do that part. Just reading it one character at a time and writing...
10 Nov 2020 by Ryan Pflum
I am currently wondering how a certain java program would be written properly. [Sample Console Output/File Output][1] A department store manages their sales in the form of files. A sale is recorded on each line of a sales file in this...
10 Nov 2020 by Dave Kreskowiak
If you want to understand what the code is doing, there's a tool called the DEBUGGER that does that. It's there to debug YOU, not the code. It's there to help you understand what the code is doing. Get to know how to use it, and fast. It'll make...
10 Nov 2020 by OriginalGriff
Given that your code doesn't even come close to doing what your homework requires, there isn't a lot of point in either of us wasting our time "describing how it works" so you can understand your own code ... Throw that lot away, read the...
29 Aug 2020 by Calvin Law
I'm new to PHP development and I'm facing some difficulties on installing a test server on the eclipse ide. Basically, i have installed wampserver x64 (apache 2.4, mysql 5.7 and PHP 7.0) with eclipse ide 2020-06 on a windows 10 machine. The...
29 Aug 2020 by User 14823784
Select local apache2 server that is attached and coming after installation through wamp64
18 May 2020 by epanjohura
Hey guys, Is there any possibility to create a global struct in java?I know there is something like this in C++ for creating a struct:struct some_struct{int one;int two;int three;};But how can I do it in Java?GreetingsEpanjohura
13 May 2020 by Richard Deeming
As mentioned in the comments, you need to use the Request.Cookies collection, not the Response.Cookies collection. The request cookies[^] are the ones sent by the client to the server. The response cookies[^] are the new ones that will be sent...
13 May 2020 by Subrata.In
I want to develop an app which write some value in cookies (and update periodically), and on web page (using webview) there is a button, by clicking the button it will show the cookie value. I found lots of solution, but none of them solve my...
27 Apr 2020 by Patrice T
Quote: In java how do I replace all special characters? I fear you have to fill this part of code: private static void replaceAll(String string, String string2) { }
27 Apr 2020 by sunya s
Even though I used the replace all func. Its giving me special characters. Below is my code. What I have tried: package oops; import java.util.Arrays; import java.util.Map; import java.util.Scanner; public class Main { private static...
24 Apr 2020 by OriginalGriff
Just to add to Greg's reply, if you don't understand a line of code, break it down: ++freq[1 + rand.nextInt(4)]; Becomes int index = 1 + rand.nextInt(4); ++freq[index]; Becomes int randomValue = rand.nextInt(4);int index = 1 + randomValue;...
24 Apr 2020 by lelouch_vi 2
Hi, I have a friend which have this code. import java.util.*; public class JavaRandomMath { public static void main (String [] args) { Random rand = new Random(); int freq[] = new int [5]; for (int roll = 0; roll
24 Apr 2020 by Greg Utas
You're right, the ++ is an increment operation. freq[4] is an array of five integers, indexed by 0 through 4. rand.nextInt(4) says "Give me the next random integer from 0 up to 4." When that number is returned, its index in the freq array is...
9 Apr 2020 by User 14764808
I'm working on this code currently and I want it to print an array of 10 lines showing the taxable income, filing status and the total tax due from that individual one per line. I'm not quite sure how to do it. I've tried numerous times but I...
9 Apr 2020 by OriginalGriff
Quote: I've been trying to declare an array but no luck. If someone could show me how to print the marital status, the income, and income tax for 10 inputs I would LOVE YOU! I'm sure you would - but ... we are more than willing to help those...
6 Apr 2020 by James A. Brannan
Introduction AWS SQS Message Queues are a way to exchange messages between applications. Senders, send data objects to a queue and receivers, receive objects from a queue.
5 Apr 2020 by James A. Brannan
Exploring AWS KMS to encrypt and decrypt data via the AWS Java 2 SDK
3 Mar 2020 by Manujaya Premathilaka
I am implementing a socket program in java. The server reads a log file and sent it to the client line by line. The client will display the received lines in received order on SWT window. Up to here, the program works fine. But if I click...
16 Feb 2020 by phil.o
The substring method does not modify the original string; instead, it returns a new string. Thus, the lineline.substring(3); does not do anything. You probably want to writeline = line.substring(3); instead, which allows to save the new string...
16 Feb 2020 by Manujaya Premathilaka
I have a java program which reads a log file and displays the file in the console. Before displaying it should remove the timestamp. Therefore I implemented the following function, public void readLogFile() { try { InputStream fis...
16 Feb 2020 by OriginalGriff
At a guess - and we don't have your data, so we can't tell - the error message implies that the string does not have 4 characters in it. Since you are in a loop, that implies that at least one line in your file is too short - and there could be...
28 Jan 2020 by k5054
The simple way would be something like this #include #include int main() { // some processing .... size_t seconds = 0; while(seconds
28 Jan 2020 by Manujaya Premathilaka
I am a beginner in C++. Let's say I have 4 functions (func1(), func2(), func3() & func4()). And let's say I have assigned time values to be triggered for each function as below, func1() - after each 3 seconds func2() - after each 6 seconds func3() - after each 9 seconds func4() - after each 12...
26 Jan 2020 by Shao Voon Wong
Your / should be in front of the end tag. ADSM
26 Jan 2020 by Manujaya Premathilaka
I'm trying to read an XML file using c++ in eclipse. I am using 'rapidXML' library to achieve this. But once I try to run the program, it terminates saying, terminate called after throwing an instance of 'rapidxml::parse_error' what(): expected ' or " The code: xml_document doc;...
26 Jan 2020 by CPallini
No surprise, actually. Your XML is invalid. Quote: ADSM ... There should be quotes around the attribute names.
19 Jan 2020 by Manujaya Premathilaka
I am writing a program in c++ using eclipse. I have a vector which needs to store pointer objects. When I compile the program, it crashes saying the program has stopped working. How can I fix this error? //declaring pointer to TopStock class TopStock* stock = new TopStock(row[0], row[1],...
19 Jan 2020 by Patrice T
Quote: When I compile the program, it crashes saying the program has stopped working. Posting 2 lines of code that refer to mystery other code is no help to understand what you did wrong. Your code do not behave the way you expect, or you don't understand why ! There is an almost universal...
19 Jan 2020 by OriginalGriff
We can't tell - we don't have access to your data, or to your code while it's running - and that what you need to work out why. Heck, we don't even know what the error message is, and that's normally very, very relevant! So, it's going to be up to you. Fortunately, you have a tool available to...
23 Dec 2019 by Manujaya Premathilaka
I am a beginner to socket programming. I'm using eclipse ide in C++ language. I tried a simple client-server program and it gives me an error in read() method of the server program. This is my server program: void Server2::createSocket(){ #ifdef WIN32 // Initialize Winsock int iResult;...
5 Dec 2019 by Richard MacCutchan
Please do not post the same question in multiple forums. You already posted this in the Java forum.
5 Jul 2019 by OriginalGriff
The Casio constructor creates a local array called "abc" which "hides" the class level version. As a result, the class level version never gets any values assigned to it, or indeed any space for elements. Change this line: String abc[] = new String[x]; To this: abc = new String[x]; And try...
5 Jul 2019 by SAI TEJ99
import java.lang.*; import java.util.Scanner; class Casio { String abc[]; Scanner j = new Scanner(System.in); public Casio(int x) { System.out.println("IM IN DEFAULT CONSTRUCTOR"); String abc[] = new String[x]; for(int i=0;i
5 Jul 2019 by OriginalGriff
Look at your code: for(i=0;i
5 Jul 2019 by SAI TEJ99
import java.lang.*; import java.util.Scanner; class ArrObj { public int rollno,clss; public String name,section; Scanner s = new Scanner(System.in); public void getdata() { System.out.println("ENTER NAME"); name = s.next(); System.out.println("ENTER CLASS"); clss = s.nextInt();...
17 Jun 2019 by James A. Brannan
Exploring the AWS Key Management System (KMS) to encrypt and decrypt data via the AWS Java 2 SDK
2 Jun 2019 by James A. Brannan
Amazon Web Services Simple Queue Service using the Java 2 Software Development Kit
21 Apr 2019 by James A. Brannan
In this tutorial, we explore creating, reading, updating, listing, and deleting objects and buckets stored in S3 storage using the AWS Java SDK 2.0 to access Amazon’s Simple Storage Service (S3).
8 Apr 2019 by James A. Brannan
Spring Boot 2 – REST Exceptions
26 Mar 2019 by James A. Brannan
How to convert a List of Strings to a List of Integers using the MapReduce programming paradigm
26 Mar 2019 by James A. Brannan
Spring Rest Using Spring Boot
25 Mar 2019 by James A. Brannan
In this tutorial, we create a simple Rest application using POST.
12 Feb 2019 by Member 13943607
I am trying to write a java program in Eclipse editor. For this reason i want to add kfka third party library. I add this line in top of the program import kafka.javaapi.producer.Producer; but it giving me error. "The import kafka cannot be resolved. ". I am new to java and eclipse,...
12 Feb 2019 by CPallini
Possibly there is a mismatch between your code and the jar you downloaded, see api - what's the difference between kafka.javaapi.* and org.apache.kafka.*? - Stack Overflow[^].
31 Jan 2019 by Dave Kreskowiak
For Mac packages, you're not going to do it in Eclipse, that I know of anyway. See this[^] for a list of possible tools.
31 Jan 2019 by begg
I need to create an application that is to be run on Windows and on Mac machines. For windows, I need to prepare .msi file extensions with silent options for install so that the installation process can be handled via automation. For mac, I am required to provide .pkg type installers or script. ...
25 Jan 2019 by Priyanka Sabharwal81
Basic understanding of how to write/use the Apache-tika facade function and debug it in Eclipse
9 Jan 2019 by Member 14113103
i am currently working on eclipse and i have created two windowbuilder applications and i am trying to link them. basically one of the is the log in page and the other is an intro page. i am trying to link intro page to the login button which is located on log in page but i am not sure how....
7 Jan 2019 by Member 13535164
I am posting json data to the server but on getting response it should be like this {"id":65,"check":1,"date":"08-Jan-19"} instead i am getting this {"id":"65check=1","check":null,"date":"08-Jan-19"} What I have tried: This is the code on button click i send json form data to server but...