Ecplise Project Issue

I am getting all my projects in a parent folder that I haven't created by my self I don't know how it appears in my project directory . Can Someone Help ?
No description
30 Replies
JavaBot
JavaBot5mo ago
This post has been reserved for your question.
Hey @Danix! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Danix
DanixOP5mo ago
@dan1st | Daniel can u see it ? Now the issue is even bigger than this bcz i have deleted my project by mistake and all the classes are gone but after restoring them via history my hierachy is very bad and alot of errors facing right now ! Can U suggest what can i do now ?
Peter Rader
Peter Rader5mo ago
"Other projects" is a virtual "Working Set" for all projects that are not ordered in other "Working Sets". Press the three dots in order to create a named, non-virtual "Working Set".
dan1st
dan1st5mo ago
click on the 3 dots you can configure the top level elements there I think For that, you'd need to show us the errors
Danix
DanixOP5mo ago
I solved it but How could I post my project in GitHub using ecplise
dan1st
dan1st5mo ago
First create a GH repository Then right click on the project in Eclipse and select Team > Share Project or similar then you should be able to use the git staging view to commit and push
Danix
DanixOP5mo ago
yeh but i am getting this main ->main[rejected-non-fast-forward] can u see @dan1st | Daniel
dan1st
dan1st5mo ago
Looks like you hav commits both locally and on GitHub
Danix
DanixOP5mo ago
so what to do now ?
dan1st
dan1st5mo ago
Do you want to keep what's currently on GitHub?
Danix
DanixOP5mo ago
i dont have anything on github btw except a readme file
dan1st
dan1st5mo ago
that's enough to block the push Do you need the README?
Danix
DanixOP5mo ago
no . @dan1st | Daniel
Error: Could not find or load main class com.ShelfSpace.ShelfSpace.SpaceShelfMain
Caused by: java.lang.ClassNotFoundException: com.ShelfSpace.ShelfSpace.SpaceShelfMain
Error: Could not find or load main class com.ShelfSpace.ShelfSpace.SpaceShelfMain
Caused by: java.lang.ClassNotFoundException: com.ShelfSpace.ShelfSpace.SpaceShelfMain
i dont know why i am getting this
dan1st
dan1st5mo ago
then you should be able to force push How are you running the project? Can you show the build path?
Danix
DanixOP5mo ago
Here it is
Danix
DanixOP5mo ago
No description
Danix
DanixOP5mo ago
@dan1st | Daniel
dan1st
dan1st5mo ago
You still haven't shown how you run your code
Danix
DanixOP5mo ago
just run as spring bootapp
dan1st
dan1st5mo ago
Can you show the project tree in the package explorer including the main class?
Danix
DanixOP5mo ago
No description
JavaBot
JavaBot5mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Danix
DanixOP5mo ago
@dan1st | Daniel I am still stuck bro
dan1st
dan1st5mo ago
Can you also show your main class (the full class, ideally as text using a code block and not as an image)
dan1st
dan1st5mo ago
Stack Overflow
Eclipse "Error: Could not find or load main class"
I have a project in eclipse on my laptop that I pushed to Git https://github.com/chrisbramm/LastFM-History-Graph.git It works fully on my laptop and runs/builds without a problem but on my desktop...
dan1st
dan1st5mo ago
Also check the other answers
Danix
DanixOP5mo ago
package com.ShelfSpace.ShelfSpace;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpaceShelfMain {

public static void main(String[] args) {
SpringApplication.run(SpaceShelfMain.class, args);
}


}
package com.ShelfSpace.ShelfSpace;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpaceShelfMain {

public static void main(String[] args) {
SpringApplication.run(SpaceShelfMain.class, args);
}


}
here it is
dan1st
dan1st5mo ago
see that
Danix
DanixOP5mo ago
ok thanks
JavaBot
JavaBot5mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server