Is anyone here familiar with BBEdit 9?


Recommended Posts

A while ago I made a topic about wanting to compile and run Java programs with a text editor. I was using TextMate for a while, but ending up switching to BBEdit. It does the job, but I can't figure out how to compile and run the Java programs I write. This is what I get:

post-119000-1258763868.png

I'm not sure what a "shebang" is.

http://en.wikipedia.org/wiki/Shebang_%28Unix%29

It looks like it's trying to invoke some kind of bash script which is lacking a line like

#!/bin/bash

or similar.

Hmm... All I'm testing is a basic Java program...

#!/bin/bash

public class Hello {
	public static void main(String[] args) {
		System.out.println("Hello World!");
	}
}

This will let me run the Terminal, but then I get this:

post-119000-1258764778_thumb.png

I don't think BBEdit will do a compile and run for Java. It just tries to run it like a shell script (and never compiling it), which is why it thinks it needs a shebang.

Edit: Found this: http://nanotux.com/blog/bbedit-java-compiler/. Might help.

Hmm... All I'm testing is a basic Java program...

#!/bin/bash

public class Hello {
	public static void main(String[] args) {
		System.out.println("Hello World!");
	}
}

This will let me run the Terminal, but then I get this:

I've never seen a java program start with #!/bin/bash...... that's for bash scripts...

I've never seen a java program start with #!/bin/bash...... that's for bash scripts...

Yea, a Java program would never need the shebang. It's just that BBEdit's "Run" command just tries to run whatever you've made as a shell script and not use the specific method of whatever language you're writing in.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I have a Motorola, one of the lower end ones, it works fine. It is possible to get rid of the Gemini app and also to disable googles assistant , but A.i is still apps. I try to avoid all LLM A.I, is i can, I use no Ai duck duck go.
    • Free Software Foundation Europe pushes EU to force Google to allow AI uninstalls on Android by Paul Hill Credit: Pexels Users should be able to fully uninstall AI-based features from Android devices and be able to access interoperability functions, free from Google’s verification requirements, the European Commission has heard as part of an Android interoperability consultation under the Digital Markets Act. These measures were proposed by the Free Software Foundation Europe (FSFE) last week when it submitted its documentation. The FSFE noted that Google had started silently installing AI models without telling users. It noted that the EU’s DMA requires companies like Google to allow users to uninstall pre-loaded software from their devices, but in the case of the AI models Google is installing, they reinstall if you delete them, contravening the DMA. To get Google back under control, the FSFE has told the European Commission that there needs to be improvements within the Android Open Source Project (AOSP). First, it said that users should be able to fully remove pre-loaded AI components from their devices, with companies being prohibited from silently reinstalling or reactivating them. Second, access to Android interoperability features should not be contingent on registration, authorization, or contractual relationships with Google. This pertains to Google’s attempt to force developers to register with Google, even to publish apps to alternative app stores like F-Droid. Discussing its submission, Lucas Lasota, FSFE Legal Programme Manager, said: Google is planning to roll out its Android Developer Certification in September 2026. This will force every Android app developer to register with Google before their software can be installed on certified Android devices, but it should affect those who have removed Google Apps from their device. The program is controversial because it entails the signing of contracts and payment of account fees to Google, as well as the handing over of the identities of developers. It said: The FSFE said that if the Commission’s draft measures remain unchanged, then Google will be allowed to make developers verify their identity. The FSFE believes that asking developers to register is contrary to the text and spirit of the law. In summary, the FSFE has told the Commission that no developer should need a Google account, a Play Store presence, or any agreement with Google to access Android’s interoperability features.
  • Recent Achievements

    • Conversation Starter
      sumytbe earned a badge
      Conversation Starter
    • One Year In
      B4dM1k3 earned a badge
      One Year In
    • One Year In
      DarkWun earned a badge
      One Year In
    • Dedicated
      Almohandis earned a badge
      Dedicated
    • Dedicated
      JuvenileDelinquent earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      519
    2. 2
      +Edouard
      188
    3. 3
      PsYcHoKiLLa
      87
    4. 4
      Michael Scrip
      81
    5. 5
      Steven P.
      72
  • Tell a friend

    Love Neowin? Tell a friend!