Linked Questions

1 vote
2 answers
492 views

I am facing an using in automation. I just want to execute selenium script, which I wrote in eclipse via cmd. I haven't used testng or anything else. public class claim { public static void main(...
-5 votes
1 answer
282 views

I have a seemingly simple program in Java, but when I run it, I get the error: Error: Could not find or load main class Here is my code. public class HelloPrinter { public static void main(...
0 votes
2 answers
201 views

I would like to make a custom command, which can invoke my java class. I am not sure how to proceed with it. I don't want to use java < classname> instead I want to create a custom command say ...
0 votes
1 answer
141 views

I can see the version of my java site as well as javac: ➜ intro java --version openjdk 13.0.2 2020年01月14日 OpenJDK Runtime Environment (build 13.0.2+8) OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed ...
Sidney Sousa's user avatar
  • 3,644
1 vote
0 answers
93 views

I have written a code snippet below and have saved it as Exerciselb.java and its compiled properly but its not executing Snippet: class Exerciselb { public static void main(String[] args){ ...
Girisha's user avatar
  • 19
44 votes
5 answers
123k views

I have read the previously posted questions. Some are vague and none solved my problem so I am forced to ask again. I have two simple classes, package One; import One.Inner.MyFrame; public class ...
7 votes
2 answers
24k views

I have a Gradle project (say, MyProject) that has a main method that I only want to use to run a small Java app. Say, the script is in a class and package as follows: MyScript.Java package com.car....
4 votes
3 answers
6k views

I've looked here, here, here, and here. While informative they just didn't quite have enough for me to discover the root of my problem. My code isn't contained within a JAR file and the customer has ...
2 votes
1 answer
7k views

I assume that additional dependencies are needed, but I can not understand exactly what. I appreciate everyone's help. My pom file is: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:...
invzbl3's user avatar
  • 6,648
-1 votes
3 answers
14k views

The file name is BookDemo.java and I compiled it like this: javac bookpack\BookDemo.java This is my block of code: package bookpack; class Book { private String title; private String author; ...
1 vote
1 answer
5k views

I have a java project build using Maven "quickstart" template. The structure looks like src main java myapp HelloWorld.java The HelloWorld.java is declared to be under package "...
user2628641's user avatar
  • 2,194
1 vote
2 answers
10k views

I am looking into IBM's quickfile API. Now I am a front-end developer and I do not know much about Java. I would like to know how I can implement some of the sample code they provide on the ...
David Van Staden's user avatar
0 votes
1 answer
4k views

I'm very new to Java; and have only self learned the basic java class. Now I'm studying the inheritance part; here is the sample code I got from online. I have my code on my sublime, then I compile ...
ElleryL's user avatar
  • 527
2 votes
2 answers
364 views

$cat JarTest.java package edu.testjava.simple; public class JarTest { public static void main(String args[]) { System.out.println("Hello World\n"); } } $javac JarTest.java $...
xyz's user avatar
  • 8,987
0 votes
1 answer
997 views

I've just istalled JDK8 on PC Windows 11 Home Now im trying to run simple default program from NetBeans14 In environmental variables: PATH : C:\Program Files\Java\jdk1.8.0_202\bin CLASSPATH : C:\...

15 30 50 per page
1
2