100 questions
Score of 0
1 answer
55 views
How can I resolve Java package namespace error?
In this error ('package="io'), there has an operator " between ' and '.is it a system error? How do I solve it?
Error:
Namespace 'package="io.flutter.plugin.pathprovider"' is not ...
Score of 0
1 answer
39 views
Java Mail project working when running within netbeans but not working when running directly dist/executble jar file
Please help,
javax mail project sending email when running it from netbeans, but when running directly from executable jar file then mail not going. and also not working on any other PC and server.
...
Score of 0
1 answer
122 views
How to add non-modular JARs with split packages to a modular JavaFX project in Intellij idea?
My project uses Mapsforge library for displaying maps, and JavaFX for GUI.
There is a way to compile JavaFX with javafx-maven-plugin and stay in the unmodular paradigm, but it seems against the best ...
Score of 0
0 answers
99 views
Docker, why does it fail to access my other package in a java program
I'm deeply sorry since the answer may be existing already but I've failed to found it yet and the similar question part of stack overflow pointed me to some python question that doesn't really help me ...
Score of 0
2 answers
167 views
Can't import subpackage into another subpackage
I am trying to create a package named myUtil, inside I have two subpackages named Node and BinaryTree.
Inside Node dir, I have Node.java and Node.class, and of course the first line in the java file ...
Score of 1
0 answers
187 views
pyspark 'JavaPackage' object is not callable
I want to remove the first row of a dataset but this error keeps occuring: 'JavaPackage' object is not callable.
I've written another simple program for easier review. Here is my code:
# Create a ...
Score of -1
1 answer
1140 views
how to fix java package problem in vs code
# please help me to fix such thing.
when I make a directory and inside such try to write java code this problem occurs. some time it does not give any error but when I run this code, this thing come ...
Score of -1
1 answer
40 views
Why do I get "The method createLL() is undefined for the type LinkedListUse" error when calling from same package in Java?
Class linkedListUse
package linkedlists;
public class LinkedListUse {
public static void main(String[] args) {
// TODO Auto-generated method stub
Node head=createLL();
...
Score of 1
1 answer
1136 views
Java Error: Could not find or load main class, Caused by: java.lang.NoClassDefFoundError
Compiled
I've compiled the java code, but I'm not able to run it. I compiled the code with the following:
javac -cp "streamer-client-java.jar:kafka-clients-3.4.0.jar:snappy-java-1.1.10.0.jar:lz4-...
Score of -2
1 answer
109 views
Java OpenGL Syntax
i am new here and have a little problem.
I included OpenGl into eclipse and tried to run a little test program and everything is working fine as it should, but i have a problem with the syntax.
Here ...
Score of -3
2 answers
127 views
What is the first line for, in the MainActivity.java? [duplicate]
package com.mycompany.myapp2;
I want to know what this does for my application.
I am a beginner. I'm trying to learn how to develop an android application.
Thank you ❤️.
Score of 1
1 answer
132 views
How to write package-statements for nested packages?
If I have a class in a sub-package like sub-package-name, which is in a parent-package like higher-level-package-name, do I just write
package "sub-package-name";
Or also add the parent-...
Score of 0
1 answer
112 views
Error `The declared package "part2.stage2" does not match the expected package ""` with correct package name
So I have a Competitor.java file on path: /home/john/javaStuff/CMTR/src/part2/stage2/Competitor.java. I have VSCode open in the CMTR. So CMTR is my current working directory if that info is necessary.
...
Score of 3
2 answers
2183 views
"Error: Package does not exist" ... Where does the JAR file belong? [duplicate]
I'm trying to import a self made package into a Java project. I got it to work once with some test class. So, when I tried to change it to an official, approved class name, the compiling stopped ...
Score of 0
0 answers
705 views
How to find package name once Maven dependency is added
I'm attempting to use the socket.io implementation for Java. I need 2 dependencies: 1) Engine.IO Java Server and 2) Socket.IO Server Java. I'm struggling to import the actual Java packages once the ...