Linuxカーネルのメモ 自主コンパイル (Linux From Scratch)など

いつか、カーネルをコンパイルして、ビルドして見たいと思っている。

面白いサイトを「日経リナックス 絶対わかる!Linuxカーネル完全入門」を読んでいて、見つけた。p164ページに載っていた。小さくて、我ながら目ざとい。w

日本語訳はこちら

http://lfsbookja.osdn.jp/

 

Advertisements

DVDのリッピングと書き込み

DVDのリッピングデータ(ちょっと違法なんけ?てか違法にちょっとも大分もないか)をDVDに、DVDプレーヤーで再生できる形式で書き込みする方法を調べていた。

今回もWindowsの限界まで怪しくなってしまった世界を垣間見た。

すぐにヒットしたページは商業会社によって運営されていたし、リンク先のソフトも、ウィルスソフトで引っかかるような怪しいものだった。

はぁ、LINUXで使ったことあるk3bはWindows版ないようだ。これはISOファイルじゃなくても焼けたっけな?

なんか一度ISOファイルに変換して焼かないといけない模様。

imgtool classicというソフトを使って変換したあとdvddecrypterで焼こうかな。定番みたい。

Javaのコンパイル・Jarの作成・Antなどのビルドツール・Eclipseのビルド まとめ

AntでEclipseで作ったプロジェクトのビルドファイルを書いていて、いままでのビルド系の記事をまとめて見ることにした。

自分は実行可能JarをAntで作っていて、依存ライブラリのコピーが必要なことを忘れていた。

 

Git Github ブランチの統合(マージ)というか差し替え revert騒動(結局リバートしなかった)

newmasterというブランチを作ったの忘れていた。

これを開発の更新していたら、ビルド成功したので、masterにしたいが、どうすればいいのだろう。

マージすればいいようだが、もっている本だと、Linuxで使えないソフト使っているように見える。

適当にいじっていたら大失敗。newmasterにmasterを取り込んでしまった。

しかもブランチエクリプスで変えたら、ブランチ戻れなくなったよ。orz。

たぶん revertコマンドうまくいけば戻せると思うだけど。

プロジェクト

masa@em-p:~/Public/git/jaydle-project$ git revert -m1 HEAD 
error: Mainline was specified but commit 72bd3123c5affac1ea7778621f505b79ab18c796 is not a merge.
fatal: revert failed
masa@em-p:~/Public/git/jaydle-project$ git revert -m 1 HEAD 
error: Mainline was specified but commit 72bd3123c5affac1ea7778621f505b79ab18c796 is not a merge.
fatal: revert failed
masa@em-p:~/Public/git/jaydle-project$ git revert -m 1 a3bc466
error: could not revert a3bc466... Merge remote-tracking branch 'origin/master' into newmaster
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
masa@em-p:~/Public/git/jaydle-project$ git revert -m 1 55b6800
error: revert is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: revert failed

revert できない。

 

結局、ローカルのバックアップをEclipseに戻して、別ブランチにコミット、プッシュした。

.metadataやら.gitディレクトリがそこにあって、イグノアファイルに書いておいた。

Repository https://github.com/iamaturtle113/jaydle-project

warning: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.

こんな警告がでた。

 

マージして、Eclipseのプロジェクトまで壊れたので、やばかったな。

まえのプッシュも古くて、元に戻しても、とても古いファイルが復旧されていただろう。

エクリプスのプロジェクトファイルも壊れて、開けなくなっていた。

ローカルにバックアップ取っておいてよかった。でないとプルして整理しなきゃいけなかったようだし。

 

で、ブランチを整理しないと。clean_antbuildをmasterにしよう。

 

Eclipseエラーメモ 実行エラーとAntのビルドエラー

久しぶりにUbuntuのEclipse使ったら、プロジェクトに赤いビックリマーク付いているものばかりで、プログラムが走らない。

Error: Could not find or load main class org.eclipsebook.ch05.Ch05_02

というエラーでる。

Screenshot from 2019-05-21 21-25-10

しかもコンソールも表示できなくなっていたし。そっちはこちらに書いた。

このビックリマークの意味なんなんだろう。

このlaunchファイル消すのためしたけど、効果なかった。

なんかWorkspace、ごちゃごちゃしている。

 

ビックリマークの意味調べてみた。

参考サイト

http://higehige0.blog.fc2.com/blog-entry-16.html?sp

どうやら、jarが見つからなかったようだ。

プロジェクトを右クリック、ビルドパスから設定して直った。

resourceフォルダに依存jarを入れていて、それをsrcディレクトリに入れていたのが原因だったよう。

それをプロジェクト直下に置いたら、見つけられるようになった。

 

今度はAntのビルドが通らない。

Buildfile: /home/masa/Public/git/jaydle-project/build.xml
Initialize:
   [delete] Deleting directory /home/masa/Public/git/jaydle-project/bin
   [delete] Deleting directory /home/masa/Public/git/jaydle-project/jar
    [mkdir] Created dir: /home/masa/Public/git/jaydle-project/bin
    [mkdir] Created dir: /home/masa/Public/git/jaydle-project/jar
Compile:
    [javac] Since compiler setting isn't classic or modern, ignoring fork setting.

BUILD FAILED
/home/masa/Public/git/jaydle-project/build.xml:43: Class not found: org.eclipse.jdt.core.JDTCompilerAdapter

Total time: 233 milliseconds

前は通ったと思うんだけどな。

いろいろ格闘した結果、できた。

参考サイト

http://tech.cm55.com/wiki/ant/Eclipse

外部ツールから”「JRE」タブにて「ワークスペースと同じJREで実行」を選択する。”ということでした。

たしかに前もこれやったのにな。

ant用のかな、ランのアイコンの中では一番右のものを右クリックで、External Tools Configurations

絶対前もやったよ。

Buildfile: /home/masa/Public/git/jaydle-project/build.xml

Initialize:
      [delete] Deleting directory /home/masa/Public/git/jaydle-project/bin
      [delete] Deleting directory /home/masa/Public/git/jaydle-project/jar
       [mkdir] Created dir: /home/masa/Public/git/jaydle-project/bin
       [mkdir] Created dir: /home/masa/Public/git/jaydle-project/jar

Compile:
       [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
       [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
       [javac] Compiling 6 source files to /home/masa/Public/git/jaydle-project/bin
       [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
       [javac] ----------
       [javac] 1. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java (at line 3)
       [javac] 	import java.util.ArrayList;
       [javac] 	       ^^^^^^^^^^^^^^^^^^^
       [javac] The import java.util.ArrayList is never used
       [javac] ----------
       [javac] 2. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java (at line 5)
       [javac] 	import java.util.List;
       [javac] 	       ^^^^^^^^^^^^^^
       [javac] The import java.util.List is never used
       [javac] ----------
       [javac] 3. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java (at line 22)
       [javac] 	import static jaydle.BackgroundTask.*;
       [javac] 	              ^^^^^^^^^^^^^^^^^^^^^
       [javac] The import jaydle.BackgroundTask is never used
       [javac] ----------
       [javac] 4. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java (at line 25)
       [javac] 	public class Id3Tagger extends JFrame
       [javac] 	             ^^^^^^^^^
       [javac] The serializable class Id3Tagger does not declare a static final serialVersionUID field of type long
       [javac] ----------
       [javac] 5. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java (at line 32)
       [javac] 	private boolean DEBUG = true;	
       [javac] 	                ^^^^^
       [javac] The value of the field Id3Tagger.DEBUG is not used
       [javac] ----------
       [javac] 6. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java (at line 49)
       [javac] 	Matcher matcher=pattern.matcher(TargetText);
       [javac] 	        ^^^^^^^
       [javac] The value of the local variable matcher is not used
       [javac] ----------
       [javac] ----------
       [javac] 7. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java (at line 7)
       [javac] 	import java.util.ArrayList;
       [javac] 	       ^^^^^^^^^^^^^^^^^^^
       [javac] The import java.util.ArrayList is never used
       [javac] ----------
       [javac] 8. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java (at line 8)
       [javac] 	import java.util.Arrays;
       [javac] 	       ^^^^^^^^^^^^^^^^
       [javac] The import java.util.Arrays is never used
       [javac] ----------
       [javac] 9. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java (at line 10)
       [javac] 	import java.util.regex.Matcher;
       [javac] 	       ^^^^^^^^^^^^^^^^^^^^^^^
       [javac] The import java.util.regex.Matcher is never used
       [javac] ----------
       [javac] 10. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java (at line 11)
       [javac] 	import java.util.regex.Pattern;
       [javac] 	       ^^^^^^^^^^^^^^^^^^^^^^^
       [javac] The import java.util.regex.Pattern is never used
       [javac] ----------
       [javac] 11. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java (at line 14)
       [javac] 	import com.mpatric.mp3agic.ID3v2;
       [javac] 	       ^^^^^^^^^^^^^^^^^^^^^^^^^
       [javac] The import com.mpatric.mp3agic.ID3v2 is never used
       [javac] ----------
       [javac] 12. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java (at line 15)
       [javac] 	import com.mpatric.mp3agic.Mp3File;
       [javac] 	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
       [javac] The import com.mpatric.mp3agic.Mp3File is never used
       [javac] ----------
       [javac] 13. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java (at line 17)
       [javac] 	import jaydle.JaydlePrototype.ButtonListener;
       [javac] 	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       [javac] The import jaydle.JaydlePrototype.ButtonListener is never used
       [javac] ----------
       [javac] 14. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java (at line 21)
       [javac] 	import static jaydle.BackgroundTask.*;
       [javac] 	              ^^^^^^^^^^^^^^^^^^^^^
       [javac] The import jaydle.BackgroundTask is never used
       [javac] ----------
       [javac] 15. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java (at line 47)
       [javac] 	private boolean DEBUG = true;	
       [javac] 	                ^^^^^
       [javac] The value of the field JaydleMusicManager.DEBUG is not used
       [javac] ----------
       [javac] ----------
       [javac] 16. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java (at line 31)
       [javac] 	public class JaydlePrototype extends JFrame 
       [javac] 	             ^^^^^^^^^^^^^^^
       [javac] The serializable class JaydlePrototype does not declare a static final serialVersionUID field of type long
       [javac] ----------
       [javac] 17. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java (at line 119)
       [javac] 	public static class saveDirClass implements Serializable // Named as serObj instance  
       [javac] 	                    ^^^^^^^^^^^^
       [javac] The serializable class saveDirClass does not declare a static final serialVersionUID field of type long
       [javac] ----------
       [javac] ----------
       [javac] 18. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Main.java (at line 4)
       [javac] 	import static jaydle.JaydlePrototype.*;
       [javac] 	              ^^^^^^^^^^^^^^^^^^^^^^
       [javac] The import jaydle.JaydlePrototype is never used
       [javac] ----------
       [javac] 19. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Main.java (at line 5)
       [javac] 	import static jaydle.BackgroundTask.*;
       [javac] 	              ^^^^^^^^^^^^^^^^^^^^^
       [javac] The import jaydle.BackgroundTask is never used
       [javac] ----------
       [javac] ----------
       [javac] 20. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java (at line 2)
       [javac] 	import static jaydle.Utilities.println;
       [javac] 	              ^^^^^^^^^^^^^^^^^^^^^^^^
       [javac] The import jaydle.Utilities.println is never used
       [javac] ----------
       [javac] 21. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java (at line 3)
       [javac] 	import static jaydle.Utilities.regexFilterFileArray;
       [javac] 	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       [javac] The import jaydle.Utilities.regexFilterFileArray is never used
       [javac] ----------
       [javac] 22. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java (at line 4)
       [javac] 	import static jaydle.Utilities.regexFilterList;
       [javac] 	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       [javac] The import jaydle.Utilities.regexFilterList is never used
       [javac] ----------
       [javac] 23. WARNING in /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java (at line 134)
       [javac] 	ObjectInputStream ois = new ObjectInputStream(fis);
       [javac] 	                  ^^^
       [javac] Resource leak: 'ois' is never closed
       [javac] ----------
       [javac] 23 problems (23 warnings)

MakeJar:
         [jar] Building jar: /home/masa/Public/git/jaydle-project/jar/Jaydle.jar
         [jar] Building jar: /home/masa/Public/git/jaydle-project/jar/JaydleMusicManager.jar

Run:
        [java] Return of serObj.getPath().toString() /home/masa/ydlAudio
        [java] -- listing properties --
        [java] java.runtime.name=OpenJDK Runtime Environment
        [java] sun.boot.library.path=/usr/lib/jvm/java-8-openjdk-amd64/jre...
        [java] java.vm.version=25.212-b03
        [java] java.vm.vendor=Oracle Corporation
        [java] java.vendor.url=http://java.oracle.com/
        [java] path.separator=:
        [java] java.vm.name=OpenJDK 64-Bit Server VM
        [java] file.encoding.pkg=sun.io
        [java] user.country=US
        [java] sun.java.launcher=SUN_STANDARD
        [java] sun.os.patch.level=unknown
        [java] java.vm.specification.name=Java Virtual Machine Specification
        [java] user.dir=/home/masa/Public/git/jaydle-project
        [java] java.runtime.version=1.8.0_212-8u212-b03-0ubuntu1.16.04.1-b03
        [java] java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
        [java] java.endorsed.dirs=/usr/lib/jvm/java-8-openjdk-amd64/jre...
        [java] os.arch=amd64
        [java] java.io.tmpdir=/tmp
        [java] line.separator=
        [java] java.vm.specification.vendor=Oracle Corporation
        [java] os.name=Linux
        [java] sun.jnu.encoding=UTF-8
        [java] java.library.path=/usr/java/packages/lib/amd64:/usr/lib...
        [java] sun.awt.enableExtraMouseButtons=true
        [java] java.specification.name=Java Platform API Specification
        [java] java.class.version=52.0
        [java] sun.management.compiler=HotSpot 64-Bit Tiered Compilers
        [java] os.version=4.4.0-145-lowlatency
        [java] user.home=/home/masa
        [java] user.timezone=
        [java] java.awt.printerjob=sun.print.PSPrinterJob
        [java] file.encoding=UTF-8
        [java] java.specification.version=1.8
        [java] user.name=masa
        [java] java.class.path=/home/masa/Public/git/jaydle-project/...
        [java] java.vm.specification.version=1.8
        [java] sun.arch.data.model=64
        [java] java.home=/usr/lib/jvm/java-8-openjdk-amd64/jre
        [java] sun.java.command=/home/masa/Public/git/jaydle-project/...
        [java] java.specification.vendor=Oracle Corporation
        [java] user.language=en
        [java] awt.toolkit=sun.awt.X11.XToolkit
        [java] java.vm.info=mixed mode
        [java] java.version=1.8.0_212
        [java] java.ext.dirs=/usr/lib/jvm/java-8-openjdk-amd64/jre...
        [java] sun.boot.class.path=/usr/lib/jvm/java-8-openjdk-amd64/jre...
        [java] java.vendor=Oracle Corporation
        [java] file.separator=/
        [java] java.vendor.url.bug=http://bugreport.sun.com/bugreport/
        [java] sun.cpu.endian=little
        [java] sun.io.unicode.encoding=UnicodeLittle
        [java] sun.font.fontmanager=sun.awt.X11FontManager
        [java] sun.desktop=gnome
        [java] sun.cpu.isalist=
        [java] Exception in thread "main" java.lang.NullPointerExceptionException caughtjava.lang.NullPointerException
        [java] 	at jaydle.JaydleMusicManager.printDoubleDimentionArray(JaydleMusicManager.java:97)
        [java] 	at jaydle.JaydleMusicManager.initTable(JaydleMusicManager.java:74)
        [java] 	at jaydle.JaydleMusicManager.main(JaydleMusicManager.java:171)

すごい数の警告でてる。

でも、コンパイルとJar作成と実行ができてる!!!

 

Ubuntu 16.04 LTS freeze problem:Freeze while after playing audio or video problem: qjackctl, pulseaudio

OS update wasn’t effective.

Killing qjackctl was effective to solve GUI freeze.

To start from the result upgrade to the latest one solved this.
It involved package manager repository error maybe…

Came back after a while

pulseaudio dependency programs upgrade and low latency kernel upgrade

pulseaudio dependency programs upgrade and low latency kernel upgrade to 4.15.0-47-lowlatency solved the problem finally. to 4.4.0-145-lowlatency is better. 4.15 version has error, jack sound clipping error.

 

I tried

sudo apt-get remove --purge qjackctl
sudo apt-get update
sudo apt-get install qjackctl

This made elapse time to freeze longer perhaps but not solved.
My case version not upgraded upper than 0.4.5.

 

masa@em-p:~$ qjackctl -v
Qt: 4.8.7
QjackCtl: 0.4.5

Latest is 0.5.5

I tried to install latest one but not upgraded.

tried download the source and ./configure, make install, but still 0.4.5.

After reboot, upgraded to 0.5.5.

This removed the problem so far…

Case closed!!!

Killing process launching console by

ctrl + alt + F2

and

ps x | grep qjackctl

kill PID(qjackctl)

and back to the GUI by

ctrl + alt + F7

was very plentiful study source for me…

I will write a post about this …

#apt-get #repository #Xdesktop #process

ref
https://github.com/rncbc/qjackctl/issues/13

==================================================================================

error has came back….

When Tried to driver update, apt-get error found.

tried kill pulseaudio

masa@em-p:~$ pulseaudio --kill
masa@em-p:~$ ps x |grep pulse
4512 ? S<l 0:00 /usr/bin/pulseaudio --start --log-target=syslog
4517 pts/17 S+ 0:00 grep --color=auto pulse

Before kill pulseaudio, check the grep result

masa@em-p:~$ pulseaudio --start
masa@em-p:s x |grep pulse
4535 ? S<l 0:00 pulseaudio --start
4541 pts/17 S+ 0:00 grep --color=auto pulse

Checked pulseaudio version

masa@em-p:~$ pulseaudio --version
pulseaudio 8.0

https://www.freedesktop.org/wiki/Software/PulseAudio/

Tried to upgrade pulseaudio. Xenial’s latest is 8.0 but dependency library were upgraded. Also low-latency kernel latest one added.

masa@em-p:~$ sudo apt-get upgrade pulseaudio
[sudo] password for masa: 
Reading package lists... Done
Building dependency tree 
Reading state information... Done
pulseaudio is already the newest version (1:8.0-0ubuntu3.10+kxstudio1).
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-43 linux-headers-4.15.0-43-generic
linux-image-4.15.0-43-generic linux-modules-4.15.0-43-generic
linux-modules-extra-4.15.0-43-generic
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
linux-generic-hwe-16.04 linux-headers-generic
linux-headers-generic-hwe-16.04 linux-headers-lowlatency
linux-image-generic-hwe-16.04 linux-image-lowlatency linux-lowlatency
The following packages will be upgraded:
apache2-bin busybox-initramfs busybox-static google-chrome-stable
grub-common grub-efi-amd64-bin grub-pc grub-pc-bin grub2-common
kodi-inputstream-adaptive libpam-systemd libpolkit-agent-1-0
libpolkit-backend-1-0 libpolkit-gobject-1-0 libsmbclient libsystemd0
libsystemd0:i386 libudev1 libudev1:i386 libwbclient0 linux-libc-dev
linux-libc-dev:i386 policykit-1 python-samba rsyslog samba samba-common
samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules
systemd systemd-sysv udev
34 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 77.0 MB/80.0 MB of archives.
After this operation, 66.6 kB of additional disk space will be used.
Do you want to continue? [Y/n]

 

Setting up google-chrome-stable (73.0.3683.103-1) ...
Setting up grub-common (2.02~beta2-36ubuntu3.21) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up grub-efi-amd64-bin (2.02~beta2-36ubuntu3.21) ...
Setting up grub2-common (2.02~beta2-36ubuntu3.21) ...
Setting up grub-pc-bin (2.02~beta2-36ubuntu3.21) ...
Setting up grub-pc (2.02~beta2-36ubuntu3.21) ...
cp: cannot remove '/var/lib/ucf/hashfile.7': Read-only file system
rm: cannot remove '/tmp/grub.UniXufaHIw': Read-only file system
debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: Read-only file system
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libwbclient0:amd64 (2:4.3.11+dfsg-0ubuntu0.16.04.19) ...
dpkg: unrecoverable fatal error, aborting:
unable to flush updated status of 'libc-bin': Read-only file system
touch: cannot touch '/var/lib/update-notifier/dpkg-run-stamp': Read-only file system
E: Sub-process /usr/bin/dpkg returned an error code (2)
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - pkgDPkgPM::Go (30: Read-only file system)
masa@em-p:~$ pulseaudio --version
pulseaudio 8.0
masa@em-p:~$ sudo apt-get upgrade pulseaudio
W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
masa@em-p:~$

next time upgrade seemed successful.

New kernel added.

check the kernel version.

masa@em-p:~$ uname -r
4.4.0-143-lowlatency

check available kernel versions

sudo apt-cache search linux-image

download latest one from this deb file.

https://packages.ubuntu.com/ja/xenial/amd64/linux-lowlatency-hwe-16.04/download

reboot and select the new one

masa@em-p:~$ uname -r
4.15.0-47-lowlatency

This solved the problem!!!

Next grub configuration to set to default the new kernel.

 

==========================================================

P.S

And another problem. dbus-send error problem. Is this have any relation to freeze error?

masa@em-p:~$ dbus-send --system /org/rncbc/qjackctl org.rncbc.qjackctl.stop
Failed to open connection to "system" message bus: Failed to connect to socket /opt/anaconda2/var/run/dbus/system_bus_socket: No such file or directory

under /opt/anaconda2/var directory only has cache directory, no run directory in my environment.

 

Samba: gvfsd-smb-browse crashed with SIGABRT in _talloc_get_type_a …

Google result not friendly

https://www.google.com/search?client=ubuntu&channel=fs&q=gvfsd-smb-browse+crashed+with+SIGABRT+in+_talloc_get_type&ie=utf-8&oe=utf-8

But after a while, this error not generated.

And this time I could connect to Vaio Windows 7 and copy files through the network on File Browser.

At first I couldn’t establish connection after entered password for workgroup.

 

 

Memo about ant

https://ant.apache.org/manual-1.9.x/index.html

A project has 3 attributes:

  1. name
  2. default
  3. basedir

Target : tasks you wanted to be executed : 実行されたいと思ったタスクの集まり

Run Ant Build Alt Shift X, Q Op Com X, Q (Mac)

Below, dependent library classpath error.

Buildfile: /home/masa/Public/git/jaydle-project/build.xml
Initialize:
[delete] Deleting directory /home/masa/Public/git/jaydle-project/bin
[delete] Deleting directory /home/masa/Public/git/jaydle-project/jar
[mkdir] Created dir: /home/masa/Public/git/jaydle-project/bin
[mkdir] Created dir: /home/masa/Public/git/jaydle-project/jar
Compile:
[javac] /home/masa/Public/git/jaydle-project/build.xml:23: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 6 source files to /home/masa/Public/git/jaydle-project/bin
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:279: error: cannot find symbol
[javac] class MenuListenerListMp3Files implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:260: error: cannot find symbol
[javac] class MenuListenerListDirectory implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:240: error: cannot find symbol
[javac] class MenuListenerClearDisplay implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:221: error: cannot find symbol
[javac] class MenuListenerDisplayCurrentDir implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:182: error: cannot find symbol
[javac] class MenuListenerSaveDir implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:163: error: cannot find symbol
[javac] class ButtonListener implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:147: error: cannot find symbol
[javac] public static class saveDirClass implements Serializable // Named as serObj instance 
[javac] ^
[javac] symbol: class Serializable
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:49: error: package com.mpatric.mp3agic does not exist
[javac] import com.mpatric.mp3agic.ID3v2;
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:50: error: package com.mpatric.mp3agic does not exist
[javac] import com.mpatric.mp3agic.Mp3File;
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:14: error: package com.mpatric.mp3agic does not exist
[javac] import com.mpatric.mp3agic.ID3v2;
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:15: error: package com.mpatric.mp3agic does not exist
[javac] import com.mpatric.mp3agic.Mp3File;
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java:15: error: package com.mpatric.mp3agic does not exist
[javac] import com.mpatric.mp3agic.ID3v2;
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java:16: error: package com.mpatric.mp3agic does not exist
[javac] import com.mpatric.mp3agic.Mp3File;
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java:14: error: package com.mpatric.mp3agic does not exist
[javac] import com.mpatric.mp3agic.ID3v2;
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydleMusicManager.java:15: error: package com.mpatric.mp3agic does not exist
[javac] import com.mpatric.mp3agic.Mp3File;
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:124: error: incompatible types: JaydlePrototype.MenuListenerSaveDir cannot be converted to ActionListener
[javac] menuItem1.addActionListener(new MenuListenerSaveDir());
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:125: error: incompatible types: JaydlePrototype.MenuListenerDisplayCurrentDir cannot be converted to ActionListener
[javac] menuItem2Display.addActionListener(new MenuListenerDisplayCurrentDir());
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:126: error: incompatible types: JaydlePrototype.MenuListenerClearDisplay cannot be converted to ActionListener
[javac] menuItem3ClearDisplay.addActionListener(new MenuListenerClearDisplay());
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:127: error: incompatible types: JaydlePrototype.MenuListenerListDirectory cannot be converted to ActionListener
[javac] menuItem4ListDirectory.addActionListener(new MenuListenerListDirectory());
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:128: error: incompatible types: JaydlePrototype.MenuListenerListMp3Files cannot be converted to ActionListener
[javac] menuItem5ListMp3Files.addActionListener(new MenuListenerListMp3Files());
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:134: error: incompatible types: JaydlePrototype.ButtonListener cannot be converted to ActionListener
[javac] button.addActionListener(new ButtonListener()); 
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:201: error: incompatible types: saveDirClass cannot be converted to Serializable
[javac] store(serObj, jaydleSerFile);
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:287: error: cannot find symbol
[javac] Mp3File mp3file=new Mp3File(mp3); 
[javac] ^
[javac] symbol: class Mp3File
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:287: error: cannot find symbol
[javac] Mp3File mp3file=new Mp3File(mp3); 
[javac] ^
[javac] symbol: class Mp3File
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:288: error: cannot find symbol
[javac] ID3v2 v2Tag=mp3file.getId3v2Tag();
[javac] ^
[javac] symbol: class ID3v2
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:332: error: cannot find symbol
[javac] Mp3File mp3file=new Mp3File(mp3); 
[javac] ^
[javac] symbol: class Mp3File
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:332: error: cannot find symbol
[javac] Mp3File mp3file=new Mp3File(mp3); 
[javac] ^
[javac] symbol: class Mp3File
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:333: error: cannot find symbol
[javac] ID3v2 v2Tag=mp3file.getId3v2Tag();
[javac] ^
[javac] symbol: class ID3v2
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:379: error: cannot find symbol
[javac] Mp3File mp3file=new Mp3File(mp3); 
[javac] ^
[javac] symbol: class Mp3File
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:379: error: cannot find symbol
[javac] Mp3File mp3file=new Mp3File(mp3); 
[javac] ^
[javac] symbol: class Mp3File
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:380: error: cannot find symbol
[javac] ID3v2 v2Tag=mp3file.getId3v2Tag();
[javac] ^
[javac] symbol: class ID3v2
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:446: error: cannot find symbol
[javac] Mp3File mp3file=new Mp3File(mp3); 
[javac] ^
[javac] symbol: class Mp3File
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:446: error: cannot find symbol
[javac] Mp3File mp3file=new Mp3File(mp3); 
[javac] ^
[javac] symbol: class Mp3File
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Utilities.java:447: error: cannot find symbol
[javac] ID3v2 v2Tag=mp3file.getId3v2Tag();
[javac] ^
[javac] symbol: class ID3v2
[javac] location: class Utilities
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java:99: error: cannot find symbol
[javac] Mp3File mp3file=new Mp3File(fileMp3); 
[javac] ^
[javac] symbol: class Mp3File
[javac] location: class Id3Tagger
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java:99: error: cannot find symbol
[javac] Mp3File mp3file=new Mp3File(fileMp3); 
[javac] ^
[javac] symbol: class Mp3File
[javac] location: class Id3Tagger
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/Id3Tagger.java:100: error: cannot find symbol
[javac] ID3v2 v2Tag=mp3file.getId3v2Tag();
[javac] ^
[javac] symbol: class ID3v2
[javac] location: class Id3Tagger
[javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[javac] 37 errors

BUILD FAILED
/home/masa/Public/git/jaydle-project/build.xml:23: Compile failed; see the compiler error output for details.

Total time: 1 second

Next time no external jar import errrors.

My class dependent error??

Buildfile: /home/masa/Public/git/jaydle-project/build.xml
Initialize:
[delete] Deleting directory /home/masa/Public/git/jaydle-project/bin
[delete] Deleting directory /home/masa/Public/git/jaydle-project/jar
[mkdir] Created dir: /home/masa/Public/git/jaydle-project/bin
[mkdir] Created dir: /home/masa/Public/git/jaydle-project/jar
Compile:
[javac] /home/masa/Public/git/jaydle-project/build.xml:27: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 6 source files to /home/masa/Public/git/jaydle-project/bin
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:279: error: cannot find symbol
[javac] class MenuListenerListMp3Files implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:260: error: cannot find symbol
[javac] class MenuListenerListDirectory implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:240: error: cannot find symbol
[javac] class MenuListenerClearDisplay implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:221: error: cannot find symbol
[javac] class MenuListenerDisplayCurrentDir implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:182: error: cannot find symbol
[javac] class MenuListenerSaveDir implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:163: error: cannot find symbol
[javac] class ButtonListener implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:147: error: cannot find symbol
[javac] public static class saveDirClass implements Serializable // Named as serObj instance 
[javac] ^
[javac] symbol: class Serializable
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:124: error: incompatible types: JaydlePrototype.MenuListenerSaveDir cannot be converted to ActionListener
[javac] menuItem1.addActionListener(new MenuListenerSaveDir());
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:125: error: incompatible types: JaydlePrototype.MenuListenerDisplayCurrentDir cannot be converted to ActionListener
[javac] menuItem2Display.addActionListener(new MenuListenerDisplayCurrentDir());
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:126: error: incompatible types: JaydlePrototype.MenuListenerClearDisplay cannot be converted to ActionListener
[javac] menuItem3ClearDisplay.addActionListener(new MenuListenerClearDisplay());
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:127: error: incompatible types: JaydlePrototype.MenuListenerListDirectory cannot be converted to ActionListener
[javac] menuItem4ListDirectory.addActionListener(new MenuListenerListDirectory());
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:128: error: incompatible types: JaydlePrototype.MenuListenerListMp3Files cannot be converted to ActionListener
[javac] menuItem5ListMp3Files.addActionListener(new MenuListenerListMp3Files());
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:134: error: incompatible types: JaydlePrototype.ButtonListener cannot be converted to ActionListener
[javac] button.addActionListener(new ButtonListener()); 
[javac] ^
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:201: error: incompatible types: saveDirClass cannot be converted to Serializable
[javac] store(serObj, jaydleSerFile);
[javac] ^
[javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[javac] 14 errors

BUILD FAILED
/home/masa/Public/git/jaydle-project/build.xml:27: Compile failed; see the compiler error output for details.

Total time: 879 milliseconds
<?xml version="1.0" encoding="UTF-8" ?>
<project name="jaydle-project" basedir="." default="Main Build">
<property name="bin" location="bin"/>
<property name="src" location="src"/>
<property name="resources" location="resources"/>
<property name="jardir" location="jar"/>
<property name="jarjaydledl" location="${jardir}/JaydleDownloader.jar"/>
<property name="jarjaydlemm" location="${jardir}/JaydleMusicManager.jar"/>
<property name="main-class" location=""/>

<path id="classpath">
<fileset dir="${resources}" includes="**/*.jar"/>
</path>

<target name = "Main Build" depends="Initialize,Compile">
<echo message = "Ant at work!" />
</target>

<target name="Initialize">
<delete dir="${bin}"/>
<delete dir="${jardir}"/>
<mkdir dir="${bin}"/>
<mkdir dir="${jardir}"/>
</target>

<target name="Compile" depends="Initialize">
<javac srcdir="${src}" destdir="${bin}" classpathref="classpath">
</javac>
</target>


</project>

This script wasn’t enough.

maybe classpath problem.

compile error cause of dependency class files.

[javac]warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

Add

<javac srcdir=”${src}” destdir=”${bin}” classpathref=”classpath” includeantruntime=”false>

solve this.

Below is a main error

error: cannot find symbol

 

Next

Error: Could not find or load main class jaydle.Main

occurred. This time Project > Clean solved this.

https://lavilleeternelle.wordpress.com/2018/09/21/eclipse%e3%81%aerun-configration%e3%81%ae%e3%83%90%e3%82%b0%e5%8f%96%e3%82%8a/

deleting launch configure files aren’t effective.

It seems my ant build.xml file collapsing the project file or classpath file.

This is being cause of this error.

When I checked .classpath file when Error: Could not find or load main class occurred,

lib, resource around naming is the cause.

<?xml version="1.0" encoding="UTF-8" ?>
<project name="jaydle-project" basedir="." default="Main Build">
<property name="bin" location="bin"/>
<property name="src" location="src"/>
<property name="srcdir" location="${src}/jaydle"/>
<property name="resources" location="resources"/>
<property name="jardir" location="jar"/>
<property name="jarjaydledl" location="${jardir}/JaydleDownloader.jar"/>
<property name="jarjaydlemm" location="${jardir}/JaydleMusicManager.jar"/>
<property name="main-class" location="Main"/>

<path id="classpath">
<fileset dir="${resources}" includes="**/*.jar"/>
</path>

<target name = "Main Build" depends="Initialize,Compile">
<echo message = "Ant at work!" />
</target>

<target name="Initialize">
<delete dir="${bin}"/>
<delete dir="${jardir}"/>
<mkdir dir="${bin}"/>
<mkdir dir="${jardir}"/>
</target>

<target name="Compile" depends="Initialize">
<javac 
classpathref="classpath" 
srcdir="${src}" 
destdir="${bin}" 
includeantruntime="false"
source="1.8"
target="1.8"
fork="true" 
debug="true" 
>
</javac>
</target>


</project>

 

Realized it’s all about java.awt.Event.ActionListener

eclipse compiler error output -> show view -> problems
This wasn’t useful.
How to see compiler error output??
And how to recompile with -Xdiags:verbose to get full output?

Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output

from
https://stackoverflow.com/questions/4597968/how-to-recompile-with-xlintunchecked-in-ant-build-task

<compilerarg value="-Xdiags:verbose"/>

It worked but no clue to solve

Buildfile: /home/masa/Public/git/jaydle-project/build.xml
Initialize:
[delete] Deleting directory /home/masa/Public/git/jaydle-project/bin
[delete] Deleting directory /home/masa/Public/git/jaydle-project/jar
[mkdir] Created dir: /home/masa/Public/git/jaydle-project/bin
[mkdir] Created dir: /home/masa/Public/git/jaydle-project/jar
Compile:
[javac] Compiling 6 source files to /home/masa/Public/git/jaydle-project/bin
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:280: error: cannot find symbol
[javac] class MenuListenerListMp3Files implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:261: error: cannot find symbol
[javac] class MenuListenerListDirectory implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:241: error: cannot find symbol
[javac] class MenuListenerClearDisplay implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:222: error: cannot find symbol
[javac] class MenuListenerDisplayCurrentDir implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:183: error: cannot find symbol
[javac] class MenuListenerSaveDir implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:164: error: cannot find symbol
[javac] class ButtonListener implements ActionListener
[javac] ^
[javac] symbol: class ActionListener
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:148: error: cannot find symbol
[javac] public static class saveDirClass implements Serializable // Named as serObj instance 
[javac] ^
[javac] symbol: class Serializable
[javac] location: class JaydlePrototype
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:125: error: method addActionListener in class AbstractButton cannot be applied to given types;
[javac] menuItem1.addActionListener(new MenuListenerSaveDir());
[javac] ^
[javac] required: ActionListener
[javac] found: JaydlePrototype.MenuListenerSaveDir
[javac] reason: argument mismatch; JaydlePrototype.MenuListenerSaveDir cannot be converted to ActionListener
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:126: error: method addActionListener in class AbstractButton cannot be applied to given types;
[javac] menuItem2Display.addActionListener(new MenuListenerDisplayCurrentDir());
[javac] ^
[javac] required: ActionListener
[javac] found: JaydlePrototype.MenuListenerDisplayCurrentDir
[javac] reason: argument mismatch; JaydlePrototype.MenuListenerDisplayCurrentDir cannot be converted to ActionListener
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:127: error: method addActionListener in class AbstractButton cannot be applied to given types;
[javac] menuItem3ClearDisplay.addActionListener(new MenuListenerClearDisplay());
[javac] ^
[javac] required: ActionListener
[javac] found: JaydlePrototype.MenuListenerClearDisplay
[javac] reason: argument mismatch; JaydlePrototype.MenuListenerClearDisplay cannot be converted to ActionListener
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:128: error: method addActionListener in class AbstractButton cannot be applied to given types;
[javac] menuItem4ListDirectory.addActionListener(new MenuListenerListDirectory());
[javac] ^
[javac] required: ActionListener
[javac] found: JaydlePrototype.MenuListenerListDirectory
[javac] reason: argument mismatch; JaydlePrototype.MenuListenerListDirectory cannot be converted to ActionListener
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:129: error: method addActionListener in class AbstractButton cannot be applied to given types;
[javac] menuItem5ListMp3Files.addActionListener(new MenuListenerListMp3Files());
[javac] ^
[javac] required: ActionListener
[javac] found: JaydlePrototype.MenuListenerListMp3Files
[javac] reason: argument mismatch; JaydlePrototype.MenuListenerListMp3Files cannot be converted to ActionListener
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:135: error: method addActionListener in class AbstractButton cannot be applied to given types;
[javac] button.addActionListener(new ButtonListener()); 
[javac] ^
[javac] required: ActionListener
[javac] found: JaydlePrototype.ButtonListener
[javac] reason: argument mismatch; JaydlePrototype.ButtonListener cannot be converted to ActionListener
[javac] /home/masa/Public/git/jaydle-project/src/jaydle/JaydlePrototype.java:202: error: method store in class Utilities cannot be applied to given types;
[javac] store(serObj, jaydleSerFile);
[javac] ^
[javac] required: Serializable,File
[javac] found: saveDirClass,File
[javac] reason: argument mismatch; saveDirClass cannot be converted to Serializable
[javac] 14 errors

BUILD FAILED
/home/masa/Public/git/jaydle-project/build.xml:38: Compile failed; see the compiler error output for details.

Total time: 1 second

It’s all
src/jaydle/JaydlePrototype.java and
“cannot find symbol” and “incompatible types” errors.

 

error: cannot find symbol
[javac] class MenuListenerSaveDir implements ActionListener

error: incompatible types: JaydlePrototype.MenuListenerSaveDir cannot be converted to ActionListener
[javac] menuItem1.addActionListener(new MenuListenerSaveDir());

 

After this, I tried other projects, and had no problems so maybe import statements errors.

I’m trying to write my java build program.

But it also spitting errors…

https://lavilleeternelle.wordpress.com/?p=791