Jump to content
Jedi

Noclassdeffounderror:caesarcipher

Recommended Posts

Kalau baris pertama coding tu:

class RunCiphers {

Jadi nama file mesti RunCiphers.java?

Kalau error yang sama gak keluar camana?

Share this post


Link to post
Share on other sites

just tanya ek? kalau tak taruk public depan class tu tak pe ek?

class XXX {

public class XXX {

aku baru belajar lagi ni

Share this post


Link to post
Share on other sites

just tanya ek? kalau tak taruk public depan class tu tak pe ek?

class XXX {

public class XXX {

aku baru belajar lagi ni

Kalau tak taruk public di depan, access control for that class akan jadi default. (Default kita tak tulis).

Default access = package level access.. dlm package yg sama saja.

public access modifier = access level is beyond the package. Kira cam chmod 777 di linux la..

Share this post


Link to post
Share on other sites

kalau error yang sama jugak keluar, copy paste code tu ke file baru, delete file lama, save macam biasa

-- aku da banyak kali terkena, misteri gak la

tak pun jdk dan jre ko lain version ..

Share this post


Link to post
Share on other sites

Aku cadangkan ko guna Netbeans 5.5. Ko dah buat main method ke lom?Ko tau kan camner nak wat main method? Nak execute file .java kena ade main method. Kalo xde main method memang tak leh execute.

Aku guna CLI gak tapi dalam linux. Aku install JDK untuk execute file .java ni.

Edited by Firestarter

Share this post


Link to post
Share on other sites

off topic: aku terfikir sesuatu tentang nama fail tu.. chiper.. tak macam crptography ke tu?

owh, pasal public tu aku dapat tangkap.. thanks..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...