NeXeNoh i forget, that was a while ago. just the way bytebuddy works. it's like feature detecting or whatever
* polarian joined #java
* ferdna joined #java
* codebam joined #java
* deglebe joined #java
* Aedil joined #java
* mixfix41 joined #java
nimajefeature detection by compiling small test programs and detecting if they fail to compile in the configure phase? yeah, that's an approach you can take for feature detection, but normally you redirect the stderr/stdout of those test compilations then
ParaMight be a bad tool but also the only tool to do something complex where that approach is the only reliable one.
ParaFingers to ears, say "la la la"
* agnivn joined #java
* Ragnor joined #java
* MikeBux joined #java
* stfstfm joined #java
* roesyyu joined #java
* sepult joined #java
* leppard joined #java
* sa02irc joined #java
* leppard joined #java
* roesyyu joined #java
* acidjnk joined #java
* agnivn joined #java
* leppard joined #java
* agnivn joined #java
* sepult joined #java
* agnivn joined #java
* kcomhnall joined #java
* leppard joined #java
* sweatiest joined #java
* deavmi joined #java
* xerox joined #java
* tazle joined #java
* sa02irc joined #java
* jamezp joined #java
* GreenResponse joined #java
* MonsterAbyss joined #java
* Successus joined #java
* Maxxed joined #java
* skinkitten joined #java
* tronexte joined #java
* stfstfm_ joined #java
* domicron joined #java
* ChaiTRex joined #java
* roesyyu joined #java
* roesyyu joined #java
* Ragnor joined #java
* ferdna joined #java
* stfstfm joined #java
* stfstfm_ joined #java
* victori- joined #java
* stfstfm joined #java
* nmourey joined #java
nmoureyI'm working on a program with netbeans-dev with java 25 Fedora 44 I keep getting these errors : Decompress.java:788: error: class, interface, enum, or record expected AND Decompress.java:9: error: compact source file should not have package declaration -- Thanks
cheeser~show us
javabotPaste the code (and any errors) in a pastebin where we can see it. See ~pastebin for options. Also see ~testcase for good examples as to how to help us help you quickly diagnose and solve problems.
dreamrealand is this limited to netbeans, what happens when you compile outside of netbeans
ptomliNeXeN: it's CDO, with the letters in the correct order, like they're supposed to be
nmourey~testcase
javabotnmourey, sscce is a minimal independently runnable program, which demonstrates the problem; see http://sscce.org/ for details and a HOWTO
nevetShort, Self Contained, Correct Example
nmoureyCompiling failed outside of netbeans with the same errors.
* kcomhnall joined #java
* james5 joined #java
* victori joined #java
dreamrealso where's the pastebin?
* stfstfm_ joined #java
nmoureyThis is all I have for now : I have the followign error : Decompress.java:9: error: compact source file should not have package declaration - How do I make this use class path instead? Is this something that I can do in Netbeans? I have tried javac * but still got the error.
dreamrealDo you have the source?
dreamrealI mean, we can't see what you're looking at.
dreamrealAt all.
* roesyyu joined #java
nmoureyIt's not so much is the code correct but why will one .java file use a package name "package org.nmourey;" before my imports and I have no errors. Then I try and using the same package or import and I gives the above errors now. Also, FYI I tried to import that package from another class and It stopped working as an import or package. Whew.. It's that last part that really has me puzzled.
Parawe need to see the code
sepultcompact source file
sepultwhen it's a compacting source file it shall have no packages
javabotsepult's title: "JEP 512: Compact Source Files and Instance Main Methods"
nevetJEP 512: Compact Source Files and Instance Main Methods
dreamrealokay, THAT establishes some context, IF nmourey if talking about that
sepultimport module java.base
dreamrealnmourey: ^^^ are you?
sepulthah
* stfstfm joined #java
sepultseems this is all early stuff, which hasn't made into the real stuff yet
sepultproposals
dreamrealI think jep512 is out
sepultanother time where that pops up is when the right path for the jdk can't be found for some reason....
dreamrealbut I don't know why NETBEANS would care about it all that much
sepultwhat is your jdk version ?
dreamrealMine? 17, 21, 25, with temurin, graalvm, azul as a matrix
sepultit's basically morphing java to a new language with new syntax.....
sepultwth
dmlloydit's not *mandatory*
sepultso where does it get imposed on you then ?
sepultor how rather
sepultI have 26 on win11s even in VMs and 21 on the linux VMs afaik
dreamrealYou use "you" very indiscriminately, sepult :D
sepultdidn't meddle yet with the new one either
dreamrealnmourey: so here's the thing: you need to show us more of your project, because it sounds like you have a build that's expecting package structures where you don't have one
leppardhe said netbeans ide, so he probably didn't configure it properly
dreamrealsure. But we're not going to know that without more information.
dreamrealAlthough seeing "netbeans" kinda made me smile a little
* mrcrabs827769651 joined #java
sepultI only use eclipse and bluej4 and bluej5 so far
* emaczen joined #java
* X-Scale joined #java
* stfstfm_ joined #java
* x1bncwn joined #java
* leppard|2 joined #java
nmoureyI've started looking around netbeans to see if I may have missed something in the configuration. Still can't find anything.
nmoureyIt's gotta be something to due with using package or import for my custom library that I have.
nmoureyI have included it from several classes and all but one work as packages.
jbosmansif it doesn't show errors in netbeans, but can't run, probably your runtime env is different/wrong/..
jbosmansalso, having used netbeans & eclipse & bunch of others, unless it's required to use netbeans and/or a temporary thing, i'd suggest looking into intellij community edition (at least)
nmoureyStill end up back here with this error : Decompress.java:9: error: compact source file should not have package declaration
leppardheh
jbosmansnmourey, where should the Decompress class come from?
jbosmansas in, how/why should it be loaded?
jbosmansor rather, how+why
nmoureyThis java class has worked in the past, until I changed an include from "package" to "import" and back again. It only gives errors from that one file. All other includes work fine.
nmoureyjbosmans - Decompress is a custom class.
nmoureyThe User Interface includes Decompress / Compress / etc.
jbosmansright
jbosmansso are you sure you are running with java 25+ (iirc) ?
nmoureyYeah.
jbosmansdo you have the source shared at like pastebin.com or anything?