cancel
Showing results for 
Search instead for 
Did you mean: 

classpath error while building the project.

former_member187658
Participant
0 Kudos

Hi

I have created an application in which on clicking the button on one view , next view opens and data is displayed in the tables. This data i am giving as static, and for that i have created a java file. this java file is located in the subfolder i have created in the package path i have given. While building the application, i get these two errors :

1) The project was not built due to classpath errors (incomplete or involved in cycle).

2) Missing required source folder 'BPOutageTable/BPOT'

BPOutageTable is the application name, and BPOT is the subfolder in which java file is present.

This application is similar to "The Master/Detail Viewer Application" example in the tutorials.

Can anybody please help in this?

Thanks & regards,

Anupreet

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anupreet,

Where exactly you have placed that file?

Give me the location and folder name under which you have placed that file.

Regards,

Bhavik

former_member187658
Participant
0 Kudos

Hi Bhavik

The exact path for the java file is src\packages\com\sap\tc\webdynpro\bp\outtable\BPOT\DataBPOT.java.

this is the src folder for the application BPOutageTable, that I am working on.

Thanks & regards,

Anupreet

Former Member
0 Kudos

Hi Anupreet,

I am guessing that your package name for your component is, com.sap.tc.webdynpro.bp.outtable.BPOT

right and inside this package you have stored your file.

Try to put this file under mimes/components/<component name> folder.

And when retrieving this file, just specify filename.

Regards,

Bhavik

former_member187658
Participant
0 Kudos

hi Bhavik

I tried the thing told by you, but gave the error that cannot restore the java file. though file is present in the file system. and now it is not showing java file in application.

Regards,

Anupreet

Former Member
0 Kudos

Hi Anupreet,

Do one thing.

Make on JAR file and include this JAVA file inside this JAR file.

Then include this JAR file in the lib folder of your webdynpro application.

Regards,

Bhavik

Former Member
0 Kudos

Hi anupreet,

it error at buildtime means your code is not able to locate the folder and the java class.

if you switch to navigator menu and create java class in src/package node (in any package). You can get the class within the dynpro component / view.

Again try this, create a class say HelloClass in src/package node in some package. go to webdynpro view and try to access this class in dynpro code.

Rgds,

Vilish

Former Member
0 Kudos

Hi Anupreet,

Have you tried adding java file in JAR and then use this Jar file in your project.

I think, it would solve your problem

Regards,

Bhavik

former_member187658
Participant
0 Kudos

Hi

Thank you Bhavish and Vilish, I was able to solve that problem.

Thanks & regards,

Anupreet

Former Member
0 Kudos

Hi Anupreet,

Nice to hear that you have solved the problem.

How you have solved your problem?

Now, please close this thread.

And don't forget to award points if it was helpful.

Regards,

Bhavik